Agent tools
These are the MCP tools that the box gives your agent. You do not need to know them: ask for what you want, and the agent picks the tools. This list comes from the box's source code.
34 tools.
| Tool | Does |
|---|---|
list_channels | List channels The lineup: number, name, kind, item count, loop length and what is on now. |
get_channel | Get channel One channel with every item (itemId, title, length) and what is on now. |
whats_on | What's on Now and next across the lineup, or for one channel. Pass "at" (ISO date-time) to ask about another time, e.g. "what is on 7 tonight". |
preview_schedule | Preview schedule The grid for one channel over the next N hours (default 6), with start times in the box time zone. |
search_archive | Search archive.org Search archive.org for videos. Results are sorted by downloads and show the license. Then call inspect_archive_item to see the files and lengths. Query syntax is archive.org advanced search, e.g. "betty boop", "collection:prelinger AND safety", "subject:cartoons AND year:[1930 TO 1940]". |
inspect_archive_item | Inspect archive.org item The playable files in one archive.org item (one per program), with lengths and the license. Use before add_items to pick files. |
create_channel | Create channel Start a new channel. Optionally give sources to fill it in the same call (they are ingested and the result is reported). |
set_block | Set programming block At set times, another channel's shows air on this channel: "Saturday-morning cartoons on 3 from 7 to 11 every Saturday", "a Halloween takeover of channel 2 on October 31". Give days (0 = Sunday … 6 = Saturday) for a weekly block, or one date. The channel workflow arms each airing 6 hours ahead (it shows on the guide then), copies and shuffles the shows at that moment, announces the block when it starts, and returns to regular programming (in progress) when it ends. It survives restarts: a box that was off catches up. Setting a block with an existing id replaces it. |
remove_block | Remove programming block Remove a block. An airing in progress stops now and regular programming resumes. |
propose_channel | Propose channel Propose a new channel for the owner to approve on the TV. The box resolves the sources, then shows a card on the TV: OK on the remote adds the channel, BACK declines it. The proposal waits up to `expiresInHours` (default 72). You cannot approve it yourself; use proposal_status to see the answer. Use this when the owner wants to approve channels, or when you are suggesting something they did not ask for; use create_channel when they asked for the channel directly. |
proposal_status | Proposal status Where a proposed channel stands: resolving, waiting (on the TV), approved, declined, expired or failed. |
update_channel | Update channel Change a channel’s number, name, blurb, category or card kind. Renumbering fails if the number is taken. |
remove_channel | Remove channel Delete a channel from the lineup. Requires confirm=true. |
add_items | Add items Add media to a channel. Each source is resolved (archive.org metadata or ffprobe) to get its length, then appended. An archive item with no file given adds every program in it. Waits for the result. |
remove_item | Remove item Remove one item from a channel by itemId. |
move_item | Move item Move an item to a new position (0-based) in the channel’s list. |
set_anchor | Set air time Shift the channel’s clock so one item starts at a given time, e.g. "make the pilot air at 8pm Saturday". Everything else follows in order. |
set_rules | Set rules Shuffle a channel with a seed (same seed, same order), or pass shuffleSeed=null to air in list order. The current item keeps playing. |
add_bubbles | Add pop-up bubbles Write pop-up trivia bubbles for an item: short facts that pop up over the video at given seconds. Base them on what you know about the film (year, makers, history). One fact each, ≤ 90 chars, spaced ≥ 30 s apart. Merges with existing bubbles unless replace=true. |
export_lineup | Export lineup The whole lineup as a portable JSON file (share it, back it up, import it on another box). |
import_lineup | Import lineup Add the channels from a lineup file (by URL or inline JSON). Channels whose id or number is taken are skipped and reported. |
post_notice | Post notice Put a message on the bulletin board channel and the guide banner. |
install_plugin | Install plugin Install a plugin: what the box knows about an outside service. Give `repo`: a GitHub repo that publishes retro-cable-box.json in its releases ("owner/repo" installs the latest release and updates nightly when the repo publishes a new release; "owner/repo@tag" pins one release), or a URL to a manifest file. Or give `manifest` to install one you write in place (it never updates on its own). A manifest is data, never code: {"plugin":1,"id","name","description","version","streams":[recipe…],"channels":[lineup-file channels]}. A stream recipe adds a step before matching streams play, for example a new session on every tune. Installing creates the plugin's channels (a taken id or number is skipped); updates add only channels the plugin never offered before. Install only from sources the owner trusts and names. Plugins from GitHub repos may not call the owner's own network; a manifest you write in place or one from a URL the owner gives may. |
list_plugins | List plugins The installed plugins: where each came from, its release, its stream recipes and the channels it offered. |
remove_plugin | Remove plugin Uninstall a plugin. Its stream recipes stop at once. Its channels stay; remove them with remove_channel if the owner wants. |
update_plugins | Update plugins Look now for new GitHub releases of the installed plugins and install them (the box also does this every night). |
test_stream | Test stream Show what the box will play for a stream URL: which plugin recipe matches and the playlist URL it makes. Give `recipe` to test one before you install it. Makes the session request for real. |
dismiss_notice | Dismiss notice Remove a notice by id (see box_status). |
run_healthcheck | Run health check Check that every item on every channel can still be reached (it also runs nightly at 3:30 am). Broken links are repaired from the same archive.org item or a fallback URL when possible; the rest stop airing. Takes a minute or two. |
box_status | Box status Version, uptime, Temporal connection, channel count and notices. |
inspect_m3u | Inspect M3U playlist Read an M3U / IPTV playlist URL the user gives you (free live TV services through playlist tools, iptv-org, HDHomeRun, ErsatzTV, Tunarr). Lists channels with their group, tvg-id and suggested number, plus the guide-data (XMLTV) URL from the header. Filter with search or group. Then use add_live_channels to put the ones the user wants on the box. |
add_live_channels | Add live channels Put live channels from an M3U playlist on the box. Each pick matches a playlist channel by tvg-id or exact name (see inspect_m3u) and gives it a free guide number. Live channels play the stream as it is (no shared clock, no bubbles). The guide shows program titles when the playlist has XMLTV guide data. |
set_live_guide | Set live guide data Attach XMLTV guide data to a live channel so the guide and info banner show real show titles. Give the XMLTV URL (.xml or .xml.gz). Without epgId, the tool finds the channel in that file by name (the live channel name or its playlist name) and reports close matches if it is unsure. Use this when a playlist has no guide data of its own, e.g. a free-TV playlist plus that service's published XMLTV. |
forget_connection | Forget connection Unpair an agent app connection (see box_status.connections). It must pair again with the code on channel 0. |
Things to ask
- "What's on the box right now?"
- "Make me a Saturday-morning cartoon channel on 11 from public-domain cartoons on archive.org."
- "Add pop-up trivia to whatever is on channel 4 right now."
- "Make Night of the Living Dead start at 11 pm tonight on channel 9."
- "Look at this playlist and put the 90s channels on 90 and up: <M3U URL>"
- "Post a notice: pizza night on Friday."
The TV picks up changes within about 10 seconds.