Skip to main content

Module tool_schemas

Module tool_schemas 

Source
Expand description

MCP tool schemas — the inputSchema JSON advertised to the client, one const per tool.

Split out of main.rs (audit step 17, docs/reports/REPORT_DRY_AND_MODULARITY_AUDIT_2026_09_06.md). This is pure data: every const is byte-identical to the one it replaced, and the declaration order is unchanged, so the tool list this crate advertises is the same. Keeping it out of main.rs means a schema edit no longer shows up as a diff against the file that also holds the dispatcher.

Adding a tool: add the const here and to ADVERTISED, then handle it in a family under tools/.

Constants§

ADVERTISED 🔒
Every tool tools/list advertises, in order. One list, so a test can check exactly what agents are shown.
AGENTS_TOOL 🔒
Agents: the other agents, what they are doing, opening them, and the caller’s own history (docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S4).
APP_TOOL 🔒
App: this AgentMux itself; upgrade restarts every agent, so it is a tool of its own a harness can gate (like Stop).
BROWSER_TOOL 🔒
CALENDAR_TOOL 🔒
DESKTOP_TOOL 🔒
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). Off until the user turns it on; the description stays short because every agent is shown it.
DRIVE_TOOL 🔒
DRONE_TOOL 🔒
Drone: the person’s automations on this computer, for an agent to read and fire (docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md §6.5). Short: every agent is shown it.
GMAIL_TOOL 🔒
GOOGLE_TOOL 🔒
GRANTED 🔒
Tools shown only to an agent with a grant on their Google service: srv’s /api/v1/google/self/services says which, when the agent’s MCP starts.
IDENTITY_TOOL 🔒
Identity: an agent’s presets and linked provider accounts.
MEMORY_TOOL 🔒
MESSAGE_TOOL 🔒
Message: one agent, many, or a repository’s coordination channel (SPEC_AGENT_COORDINATION_CHANNEL_2026_10_15.md, srv’s /api/v1/coord/posts). broadcast loops the same signed single-target delivery send uses, once per target, in this process: srv mints, stores and serves each agent’s keys, and this process signs with its copy when it has one (else the message goes unsigned), never in a server-side batch.
PANE_TOOL 🔒
Pane: your place in the UI and the panes you show the user (docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S4).
PRESENCE_TOOL 🔒
REGISTER_DEV_SERVER_TOOL 🔒
SCHEDULE_TOOL 🔒
SENSITIVE_TOOL 🔒
Sensitive: the operations too sweeping for one agent’s say-so (docs/specs/SPEC_SUPER_AGENT_2026_10_25.md). The description stays short because every agent is shown it.
SKILLS_TOOL 🔒
Skills: the skill catalog, for an agent that manages it.
STOP_TOOL 🔒
Stop: the actions that end work, kept in their own tool so a harness can ask before them (docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.1 rule 6). self is docs/specs/SPEC_AGENT_SELF_QUIT_2026_09_24.md §6.2: the caller’s own block is the only one it can reach, and stop_tool refuses a target given with it.
TASKS_TOOL 🔒
TERMINAL_TOOL 🔒
UI_TOOL 🔒
VAULT_TOOL 🔒
Vault: the person’s secrets, which an agent names but never reads (docs/specs/SPEC_VAULT_PANE_AGENTS_USE_SECRETS_UNSEEN_2026_10_19.md §5.4).
WIDGET_TOOL 🔒
Widget: custom panes an agent builds for the user (host agents only).
ZOOM_TOOL 🔒
Zoom: read and set the zoom of the panes in the agent’s own tab and of its own window’s chrome (docs/specs/SPEC_MUXAPI_ZOOM_2026_11_24.md). Short: every agent is shown it.

Functions§

advertised_tools 🔒
ADVERTISED parsed for the tools/list answer.
tools_for 🔒
ADVERTISED, and the GRANTED tools of services.