Expand description
call_tool’s handlers, one file per tool family
(docs/specs/SPEC_LARGE_FILE_MODULE_ANALYSIS_2026_09_30.md §4.2 (a)).
Each family’s call handles the tools it owns and returns
not_in_family() for any other name, so no tool list is written twice.
Modules§
- accounts 🔒
- Identity accounts. Not advertised:
Identity(identity_tool.rs) calls these by their old names. - agents_
hosts 🔒 Agents listandAgents statusacross machines (docs/specs/SPEC_MUXAPI_AGENT_LIVE_FACTS_2026_11_20.md §6):hostnames one LAN peer, orallfor this machine and every pinned peer. Each peer is askedagents.statusat once with a short wait; a peer that does not answer, or is too old to know the op, is listed by what the LAN poll already says of it (facts: "liveness_only") and named in thehostsblock. Nothing is guessed: a missing field is absent.- agents_
tool 🔒 - Agents: one tool for the other agents (who is reachable, what they are
doing, opening them) and the caller’s own history, with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S4). It replaces DiscoverAgents, FleetList (the same call), ListConversations, GetAgentTranscript, OpenAgent and SearchHistory; their handlers (fleet.rs, history.rs, panes.rs) run each action unchanged.spawn(the agent-initiated action that makes a worker, not the CLI’s process start) is its own (SPEC_AGENT_WORKERS_2026_10_15.md §3.1): srv launches the worker, then this process sends it the brief, signed as the caller. - app_
record 🔒 Appwithview: this machine’s record of AgentMux’s own size over weeks (docs/specs/SPEC_LONG_RUNNING_ZERO_DEGRADATION_2026_11_16.md §6, task #47820), read from srv’sGET /api/v1/app/record.summarysays whether AgentMux has grown,serieslists the hours or the five-minute lines,exportreturns the lines as they are stored, to attach to a bug. The record holds numbers and stable keys only and never leaves the computer.- app_
tool 🔒 - App: this AgentMux itself (docs/specs/SPEC_UPGRADE_FOR_USERS_AND_AGENTS_2026_10_15.md
§5.1, phase 4).
versionsays what is running and whether a newer release exists;upgradeasks for it. A tool of its own, like Stop, because an upgrade restarts every agent: a harness can gate it (SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.1). - app_
workspace 🔒 Appwithworkspaceandkeep_running: an agent’s view of its workspace’s pending stop, and its request to put it back (srv’sGET /api/v1/app/workspaceandPOST /api/v1/agent/keep-running). Both work for host and container agents. The request is recorded as the agent; whether to honour it is up to the workspace’s timer.- args 🔒
- Reading a tool’s arguments, the one way every tool reads a piece of text.
- aws_
grants 🔒 - Identity
aws_grantsandaws_grant: the AWS grants this machine shares with its container agents, and the answer to a grant that is new or wider than what was allowed. Not advertised by name:Identity(identity_tool.rs) calls these. - browser 🔒
- Browser pane control.
- browser_
account 🔒 Browseractiongenerate_password: the Vault makes the password of an account the agent signs up for, and types it, once the person says yes (docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §7).- browser_
canvas 🔒 Browseractionsclickanddragon a canvas’sref: where in the canvas, in the pixelsUIscreenshotwithcanvasshows it at the size it was drawn (docs/specs/SPEC_BACKGROUND_BROWSER_SESSIONS_2026_11_28.md section 5). Each waits for the person’s approval card, which shows the canvas with the point marked.- browser_
key_ 🔒text - What
Browserkeysays about a custom list a key acted on (#47619). - browser_
locate 🔒 Browseractionslocateandclick_at: the visual fallback for a region the page’s accessibility tree can’t describe (a canvas UI, the picture of a button, a control with no accessible name). The agent looks at a screenshot and names a point; the host finds what a click there would land on and gives it a reference.click_atis that and then a click on the reference, so a committing click still asks the person, the click must land on the element, and a frame off the pane’s allowed sites is refused (docs/specs/SPEC_BROWSER_PANE_FORMS_IN_FRAMES_AND_VISUAL_FALLBACK_2026_10_16.md §4.6). There is notype_at: to type, locate the field and fill its reference, so the secret guard always sees it.- browser_
open 🔒 Browseractionopen: an agent’s first browser in a pane of its own below the agent’s pane, each later one as a tab of that browser pane (or in a split it asks for), or a floating one.- browser_
scroll 🔒 Browseractionscroll: turn the wheel over a pane’s page, or bring an element of the last snapshot into view, and say where the page is then (docs/specs/SPEC_BACKGROUND_BROWSER_SESSIONS_2026_11_28.md section 6).- browser_
sessions 🔒 Browseractionslistandshow: the browser panes an agent holds, and turning a background session into a pane the person sees (docs/specs/SPEC_BACKGROUND_BROWSER_SESSIONS_2026_11_28.md §6).- browser_
tool 🔒 - Browser: one tool for the browser panes an agent drives, with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S2). It replaces OpenBrowser and the sixteen Browser* tools; their handlers (browser.rs) run each action unchanged. An action that changes the page can wait and read it again in the same call. - browser_
waiting 🔒 Browsercalls that wait for the person return “waiting” after a short grace (docs/specs/SPEC_WAITING_CALLS_RETURN_AND_FREE_THE_TURN_2026_11_10.md): what the agent reads then, and the two actions that ask about or take down such a request,request_statusandcancel_request.- browser_
zoom 🔒 Browseractionzoom: show a pane’s page smaller or larger so what a click needs is on screen (docs/specs/SPEC_BROWSER_PANE_AGENT_ZOOM_2026_11_10.md), and the line every Browser answer ends with while a pane is zoomed.- cron 🔒
- Scheduled prompts (Cron*).
- desktop 🔒
- Desktop: look at and control a native app, with the user’s consent for each app (docs/specs/SPEC_DESKTOP_DRIVING_2026_10_20.md §5.1).
- drone_
tool 🔒 - Drone: list, read and fire the drones on this computer, and read their runs (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §6.5). srv holds the drones and decides what an agent may fire; this only carries the call, as the agent its token names.
- family 🔒
- The action router behind a family tool (one tool with an
action, docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.1). Each action names the internal handler it runs, by that handler’s old tool name, and the parameters the family tool calls differently, so one handler serves the action unchanged. - fleet 🔒
- Agent-to-agent messaging and fleet operations. Not advertised:
Agents(agents_tool.rs),Message(message_tool.rs) andStop(stop_tool.rs) call these by their old names. - global_
memory 🔒 - Global Memory.
- google_
tool 🔒 - The Google connectors’ tools:
Calendar,DriveandGmail, each listed only for an agent with a grant on its service (docs/specs/SPEC_GOOGLE_CONNECTORS_GMAIL_CALENDAR_DRIVE_2026_10_14.md D3, D4). srv makes the call with the account’s token; this only forwards the arguments and marks what comes back as other people’s text (D6). - history 🔒
- Conversation history search and transcripts. Not advertised:
Agents(agents_tool.rs) calls these by their old names. - identity_
tool 🔒 - Identity: one tool for an agent’s presets and linked provider accounts,
with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S4). It replaces PresetList, PresetGet, IdentityAccounts and IdentityValidate; their handlers (presets.rs, accounts.rs) run each action unchanged. - loops 🔒
- In-process prompt loops (Loop, LoopStop, LoopList).
- memory 🔒
- Personal Memory.
- memory_
tool 🔒 - Memory: one tool for an agent’s Personal Memory and the workspace’s Global
Memory, with an
actionand ascope(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S3). It replaces the six Memory* and seven GlobalMemory* tools; their handlers (memory.rs, global_memory.rs) run each action unchanged. - message_
tool 🔒 - Message: one tool for messages to one agent or many and for each
repository’s coordination channel, with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S4). It replaces SendMessage, FleetBroadcast, PostToChannel and ReadChannel; their handlers (fleet.rs, overlap.rs) run each action unchanged, so a message is signed and delivered exactly as before. - open_
prs 🔒 - Open PRs in
WhoIsWorkingOn(docs/specs/SPEC_AGENT_OVERLAP_AWARENESS_2026_10_10.md §3.5). They come from GitHub, so they cover agents on every computer. They are read through this agent’s own GitHub access (gh-agentwhere it is installed, elsegh; srv holds no GitHub credential), credited to the agent named by the<Agent>@<host>:title prefix CI requires, and cached for 2 minutes per repository. A PR without that prefix (a person’s or a bot’s, which the prefix rule exempts) is credited to its GitHub author, with no host. - overlap 🔒
- Who else is working on the same thing
(docs/specs/SPEC_AGENT_OVERLAP_AWARENESS_2026_10_10.md §3.2), and saying
what you are working on (
ClaimWork,ReleaseWork, §3.4). - pane_
tool 🔒 - Pane: one tool for the agent’s place in the UI and the panes it shows the
user, with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S4). It replaces WhoAmI, Layout, OpenEditor, OpenMedia, OpenFiles, NewTab, SetActiveTab, FocusWindow and SetName; their handlers (panes.rs) run each action unchanged. Closing a pane is in Stop. - panes 🔒
- Panes, tabs and windows: open, name, arrange, focus, close; the agent’s own
identity and lifecycle. Not advertised:
Pane(pane_tool.rs),Stop(stop_tool.rs) andAgents(agents_tool.rs) call these by their old names, and RegisterDevServer passes through Pane unchanged. - presence_
tool 🔒 - Presence: one tool for who is working on what, with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S3). It replaces WhoIsWorkingOn, ClaimWork and ReleaseWork (statusis new, SPEC in docs/reports/REPORT_SWARM_PHRASE_ACCURATE_SPECIFIC_CURRENT_2026_11_02.md §0); their handlers (overlap.rs) run each action unchanged. - presets 🔒
- Presets. Not advertised:
Identity(identity_tool.rs) calls these by their old names. - pty_
shell 🔒 - The agent pane’s PTY shell (its shell drawer). Not advertised:
Terminal(terminal.rs) calls these by their old names foropen, writing, resizing andclose. - remote_
op 🔒 - The
hostargument of the MuxAPI tools: run an operation on another machine (docs/specs/SPEC_AGENTS_OPERATE_OTHER_MACHINES_2026_10_30.md§4.8). - schedule_
tool 🔒 - Schedule: one tool for prompts injected on a schedule, with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S3). It replaces the five Cron* tools and the three Loop* tools:createwithcronis a persistent job (cron.rs), witheverya loop that lives as long as this agent’s session (loops.rs). Their handlers run unchanged. - send_
files 🔒 SendMessage’sfiles: each file is put in this agent’s own attachment store first, through srv’s upload route, and the jekt then names them by hash (docs/specs/SPEC_JEKT_FILE_TRANSFER_2026_10_05.md §3.1). This process runs as the agent, so it sends exactly what the agent can read.- sensitive_
tool 🔒 - Sensitive: ask for an operation too sweeping for one agent’s say-so, or, as the super agent, decide such a request (docs/specs/SPEC_SUPER_AGENT_2026_10_25.md §4). srv holds the requests, the checks and the countdown the person can veto; this only carries the call, as the agent its token names.
- shell 🔒
- Pipe shells (background jobs) in the agent pane, and the connections a
terminal can run on. Not advertised:
Terminal(terminal.rs) calls these by their old names for itsrunwithbackground,close,typeto a job, andconnections. - skills_
tool 🔒 - Skills: an agent manages the skill catalog the way Memory > Skills lets a person: list, get, upsert,
delete, bind, unbind, and who a skill reaches. srv does the work (
POST /api/v1/agent/skill) and records each change as this agent. - srv_
calls 🔒 - One way for a tool to ask this agent’s srv: the address, the instance key, the request and the words of a failure, written once.
- stop_
tool 🔒 - Stop: one tool for the actions that end work, with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.1 rule 6 and §4.2, slice S4). Kept apart from the other tools so a harness can ask before any of them. It replaces QuitSelf, FleetBulkStop and ClosePane; their handlers (panes.rs, fleet.rs) run each action unchanged, and srv’s own guards (the user’s override window, the audit log) apply to all three. - tasks_
tool 🔒 - Tasks: one tool for the shared task queue (Muxqueue), with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S3). It replaces the six Work* tools, renamed so the queue can’t be confused with Presence’s claims; their handlers (work.rs) run each action unchanged. - terminal 🔒
- Terminal: one tool for the agent’s terminals, with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S1; docs/specs/SPEC_AGENT_TERMINAL_DRIVING_2026_10_15.md P1). It replaces Shell*, PtyShell* and ConnList. Their handlers (shell.rs, pty_shell.rs) still make the srv calls whose answer needs no structure; this file does the rest: keys by name, Enter as CR on every platform, reads without ANSI from a cursor, waits, andrun’s exit code. - ui 🔒
- UI automation and window capture.
- ui_tool 🔒
- UI: one tool for inspecting and driving AgentMux’s own UI, with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S2). It replaces UIScreenshot, UIQuery, UIClick, ListShortcuts, RunCommand, PressKeys, CaptureWindow and DiscoverWindows; their handlers (ui.rs) run each action unchanged. - vault_
tool 🔒 - Vault: the person’s secrets, named but never read
(docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §5.4).
listreads entries’ names;requestasks the person for a new entry and waits for the answer;generatecreates an entry whose value the Vault makes (docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §4.1). No route an agent can call returns a value. - widget_
tool 🔒 - Widget: one tool for the custom panes an agent builds for the user, with an
action(docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S4). It replaces WidgetList, WidgetInstall and OpenWidget; their handlers (widgets.rs) run each action unchanged. - widgets 🔒
- Widgets: list them, install one the user then approves, open its pane
(docs/specs/SPEC_USER_WIDGETS_AND_WIDGET_API_2026_10_09.md §10). Not
advertised:
Widget(widget_tool.rs) calls these by their old names. - work 🔒
- The shared work queue (Work*).
- zoom_
tool 🔒 - Zoom: read and set the zoom of the panes in the caller’s own tab and of its own window’s chrome (docs/specs/SPEC_MUXAPI_ZOOM_2026_11_24.md). srv decides which panes are the caller’s and the window applies the change and tells the person; this only carries the call, as the agent its token names.
Structs§
- NotIn
Family 🔒 - A family’s answer for a tool it doesn’t own.
- ToolCtx 🔒
- What every handler may need from the MCP process.
Constants§
- REPLACED 🔒
- Tools a family tool replaced (SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §6): the model only sees listed tools, but a memory, a skill or a script may still name an old one, so the error says what to use instead.
Functions§
- call 🔒
- Try each family in turn; the first that owns
nameanswers. - not_
in_ 🔒family - pane_
arg 🔒 - The optional
paneargument: a browser pane this agent opened withOpenBrowser. srv checks ownership; absent = the agent’s own pane. - resolve_
workdir_ 🔒path - A path the agent gave, made absolute against its own workspace
(
AGENTMUX_AGENT_WORKDIR, else this process’s directory). It doesn’t follow acdin the agent’s shell, so tools ask for absolute paths.