RETRO CABLE
8 TOOLS

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.

ToolDoes
list_channelsList channels
The lineup: number, name, kind, item count, loop length and what is on now.
get_channelGet channel
One channel with every item (itemId, title, length) and what is on now.
whats_onWhat'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_schedulePreview schedule
The grid for one channel over the next N hours (default 6), with start times in the box time zone.
search_archiveSearch 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_itemInspect 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_channelCreate channel
Start a new channel. Optionally give sources to fill it in the same call (they are ingested and the result is reported).
set_blockSet 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_blockRemove programming block
Remove a block. An airing in progress stops now and regular programming resumes.
propose_channelPropose 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_statusProposal status
Where a proposed channel stands: resolving, waiting (on the TV), approved, declined, expired or failed.
update_channelUpdate channel
Change a channel’s number, name, blurb, category or card kind. Renumbering fails if the number is taken.
remove_channelRemove channel
Delete a channel from the lineup. Requires confirm=true.
add_itemsAdd 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_itemRemove item
Remove one item from a channel by itemId.
move_itemMove item
Move an item to a new position (0-based) in the channel’s list.
set_anchorSet 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_rulesSet 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_bubblesAdd 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_lineupExport lineup
The whole lineup as a portable JSON file (share it, back it up, import it on another box).
import_lineupImport 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_noticePost notice
Put a message on the bulletin board channel and the guide banner.
install_pluginInstall 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_pluginsList plugins
The installed plugins: where each came from, its release, its stream recipes and the channels it offered.
remove_pluginRemove plugin
Uninstall a plugin. Its stream recipes stop at once. Its channels stay; remove them with remove_channel if the owner wants.
update_pluginsUpdate plugins
Look now for new GitHub releases of the installed plugins and install them (the box also does this every night).
test_streamTest 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_noticeDismiss notice
Remove a notice by id (see box_status).
run_healthcheckRun 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_statusBox status
Version, uptime, Temporal connection, channel count and notices.
inspect_m3uInspect 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_channelsAdd 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_guideSet 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_connectionForget connection
Unpair an agent app connection (see box_status.connections). It must pair again with the code on channel 0.

Things to ask

The TV picks up changes within about 10 seconds.