About Driver
Driver is an MCP server published by agentproto in the Productivity category: agentproto/mcp-runtime — AIP-32 MCP provider specialisation. Sugar over @agentproto/driver for Model Context Protocol servers (stdio/SSE/HTTP transports). v0.1 ships frontmatter-driven dispatch; full MCP client wraps @modelcontextprotocol/sdk in v0.2. Conduid read 197 tools from its source: agent_export, agent_interrupt, agent_kill, agent_output, agent_prompt, agent_sessions_list and 191 more. It is published to npm as @agentproto/driver-mcp, a package with no command-line entry point.
The agentproto/ts monorepo this package is published from has 11 stars and 0 forks, and its last commit was on 2 Dec 2026. Conduid has no tagged release on record for it. Its topics include agentproto, aip-32 and provider.
Install
npm install @agentproto/driver-mcpgit clone https://github.com/agentproto/tsTools (197)
agent_exportList agent sessions; export a clean transcript| Parameter | Type | Description |
|---|---|---|
| adapter | string | Deprecated alias of `harness`; removed in the next major of @agentproto/runtime. |
| cwd | string | Override cwd (absolute path) — required for claude-code when the session is not in the registry (used to locate the JSONL file). |
| format | string | Output format. `markdown` (default) renders a human-friendly transcript with a metadata table and role-labelled messages; `json` returns the raw ExportedSession object for programmatic processing. |
| harness | string | Override harness slug (e.g. 'claude-code', 'hermes') when the session is not in the registry. Required when passing a raw harness-native id. |
| sessionId | string | agentproto session id (sess_xxx), adapter-native id, or session name. Accepts either `sessionId` or its alias `id`. |
| source | string | Which backend to read from. `auto` (default) prefers the adapter's own native store (claude-code JSONL / hermes SQLite) and falls back to agentproto's own events.jsonl capture when there isn't one; `native` / `daemon` force one and surface its own error instead of falling back. |
agent_interruptSpawn, drive, interrupt, and stop long-lived agent-CLI sessionsagent_killSpawn, drive, interrupt, and stop long-lived agent-CLI sessions| Parameter | Type | Description |
|---|---|---|
| reason | string | `completed` if it finished its work, `stopped` (default) if cut off early; recorded as `operator-completed` / `operator-stopped`. |
agent_outputSpawn, drive, interrupt, and stop long-lived agent-CLI sessions| Parameter | Type | Description |
|---|---|---|
| lastN | number | Max lines to return. Default 80, max 500. |
agent_promptSpawn, drive, interrupt, and stop long-lived agent-CLI sessions| Parameter | Type | Description |
|---|---|---|
| dedupeKey | string | Retry-safe key. A second call with the same key within 24 hours is not delivered again and answers delivery 'duplicate'. |
| deliverWithin | number | Seconds; force a still-queued prompt through after this long. |
| deliverWithinVia | string | Forcing mode; auto (default) = steer, else interrupt. |
| interrupt | boolean | When true and the session is mid-turn, cancel the in-flight turn and deliver this prompt immediately instead of queueing it. UNSET uses the daemon default (`defaults.agentPromptInterrupt`). Details: tool_help {name:"agent_prompt", topic:"interrupt"} |
| queue | boolean | When mid-turn, queue this prompt (FIFO) and dispatch it once the current turn ends. Default true. |
| steer | boolean | Steer into a running turn when supported (default true); false = queue. |
agent_sessions_listList agent sessions; export a clean transcriptagent_set_effortBest-effort live switches for a session's config axes (return `{applied:false, reason}` when the running adapter can't apply them live)| Parameter | Type | Description |
|---|---|---|
| effort * | string | Effort label to switch to (e.g. low/medium/high/xhigh/max/ultracode; the accepted set is model-dependent). |
agent_set_modelBest-effort live switches for a session's config axes (return `{applied:false, reason}` when the running adapter can't apply them live)| Parameter | Type | Description |
|---|---|---|
| model * | string | Model id to switch to. |
agent_set_operator_labelStamp a session's operator-assigned `operatorLabel`: the name `message_send to:"label:<label>"` and `agent_prompt` / `agent_interrupt` / `agent_kill` `id:"label:<label>"` resolve to the one live session carrying it. The human operator may stamp any session. A session may stamp one on a session it OWNS (a child it spawned, or a descendant of it), so a supervisor can give its children a stable name; the shared `claude-desktop` identity may do so for a child it spawned with `parent: "cc:<id>"`. A session may NOT stamp its own label, nor one on a session it does not own. A label carried by any other non-archived session, live or dead, is refused for a session caller. The label on a session with a parent is an address only: `allowPromptFrom` `label:` entries, `operatorDelegates` and label-keyed grants match root sessions only. Also lets the operator label a lineage that has lived by resume/continue-fresh since before it got one. Pass an empty string to clear it. Details: `tool_help {name:"agent_set_operator_label"}`.| Parameter | Type | Description |
|---|---|---|
| operatorLabel * | string | The operator-assigned label to stamp, or "" to clear it. |
agent_set_postureBest-effort live switches for a session's config axes (return `{applied:false, reason}` when the running adapter can't apply them live)| Parameter | Type | Description |
|---|---|---|
| posture * | string | Posture to switch to: a canonical value (default/plan/accept-edits/bypass/read-only) or a raw harness mode id. |
agent_set_prompt_policySet who besides this session's owner (the caller that spawned it, or the operator for a root spawn) may drive it through the daemon's drive tools (`agent_prompt` / `agent_interrupt` / `agent_kill` / `session_restart` / `session_continue_fresh`). Pass session ids, or ["any"] for all; pass an empty array to reset to owner+operator only. Only the session itself, the session that spawned it, and the human operator may change this policy.| Parameter | Type | Description |
|---|---|---|
| allowPromptFrom * | array | Session ids allowed to drive the session, ["any"], or "label:<label>" / "label:<prefix>*" entries. Empty array = default (owner + operator only). |
agent_startSpawn, drive, interrupt, and stop long-lived agent-CLI sessionsagentproto_bureau_sessionsMCP App panel viewsagentproto_session_storyPer-session story / live PTY MCP App panelsagentproto_sessionsMCP App panel viewsagentproto_terminalPer-session story / live PTY MCP App panelsapp_applyMount / unmount apps to scopes with dependency validation| Parameter | Type | Description |
|---|---|---|
| appId * | string | |
| dataDir | string | Data root to install with (see app_install). Only used when installing. |
| dir | string | Absolute path to install from if not already installed. |
| scopeId | string | Scope to apply to. Defaults to 'root'. |
app_artifact_getReturn the artifact HTML content for an installed app. The host agent (Cowork) calls `create_artifact` with this content — the daemon exposes the content; it never writes the host manifest directly. Errors if the app has no artifact.| Parameter | Type | Description |
|---|---|---|
| appId * | string |
app_callCall a workflow an installed provider app exposes, on behalf of an installed consumer app — the app→app call mechanism. The caller must declare the provider in `requires.apps`, and the dependency entry's `workflows` allowlist must name the workflow; the provider must list it in `exposes.workflows`, and its installed version must satisfy the dependency's `version` range when both are set. The workflow then runs through the same runner path as `workflow_run_file` and the call awaits its result under a bounded timeout. TRUST MODEL: the daemon is local-trust — `callerAppId` is a declaration check, NOT a security boundary; any local process can name any installed caller, and apps are not isolated from each other. Errors carry a distinct errorCode (caller-not-installed / not-declared / workflow-not-allowed / provider-not-installed / workflow-not-exposed / version-mismatch / workflow-failed / timeout).| Parameter | Type | Description |
|---|---|---|
| appId * | string | The provider app id — must be in the caller's requires.apps. |
| callerAppId * | string | The installed consumer app making the call. |
| input | object | Workflow input, bound to `$input` in the compiled workflow. |
| timeoutMs | number | Bounded wait for the workflow to finish, in milliseconds. Default 60000, capped at 300000. |
| workflow * | string | Workflow id — must be in the provider's exposes.workflows AND the caller's dependency allowlist. |
app_catalogList browsable apps from the catalog file (default `~/.agentproto/app-catalog.json`, tolerates a missing file), merged with installed-app status — every entry reports `installed`, `hasUi`, `hasArtifact`, and `hasSkill`. Remote catalogs (`app-catalog/v1`) are appended after local entries, deduped by `appId` (first wins): the default public catalog first (config `catalog.defaultSource`, `false` turns it off), then config `catalog.sources` (else `sources` in the catalog file) — extra sources ADD to the default one. Remote entries carry `source` (for `app_install`), `origin` (default|config|file|embedded), `catalogUrl`, the optional v1 fields (version, tier, icon, publisher, publisherUrl, license, requires, minAgentprotoVersion, featured), and `stale: true` when served from the disk cache (or, for the default catalog when it was never reachable, from the embedded first-party list). A failing source is reported in a trailing `{ warnings: [...] }` content block, never as an error. Installed apps absent from the catalog are included too, as are the always-on builtin panels (category `builtin`).| Parameter | Type | Description |
|---|---|---|
| refresh | boolean | Bypass the 5-minute remote-source cache and refetch every source. |
| scopeId | string | Reserved for future scope-aware filtering. Currently unused. |
app_data_listApp-scoped durable data plane (read/write/list + legacy migration), anchored at the app's `dataDir` (default `<dir>/data`)app_data_migrateApp-scoped durable data plane (read/write/list + legacy migration), anchored at the app's `dataDir` (default `<dir>/data`)app_data_readApp-scoped durable data plane (read/write/list + legacy migration), anchored at the app's `dataDir` (default `<dir>/data`)app_data_writeApp-scoped durable data plane (read/write/list + legacy migration), anchored at the app's `dataDir` (default `<dir>/data`)app_installInstall and run `@agentproto/app` apps as live agent sessionsapp_link_mintPRIVILEGED — mint a Telegram-identity-gated AIP-53 link token for an installed app's UI (e.g. the link a Telegram bot sends for `@agentik/session-chat`). The token ALONE never grants access: whoever opens it must first pass `POST /apps/:appId/link-auth` with their Telegram Mini App `initData`, which the daemon verifies against the stored bot token (telegram_bot_token_set) and the exact telegramUserId claimed here — only a matching account exchanges it for a short-lived session token that can actually call tools (scoped by the app's `ui.toolScope`) or read that one session. The link is about a session (`sessionId`), about anything else the app scopes on (`claims`, e.g. `{ approvalId }`), or both: at least one of the two is required. Never put "app_link_mint" in an app's `ui.tools` — it is refused there and unreachable from any UI's own tool-call surface regardless.| Parameter | Type | Description |
|---|---|---|
| appId * | string | Installed app id — must declare a non-empty `ui.toolScope`. |
| botAlias | string | Telegram bot alias to verify against at link-auth time; default "default". |
| claims | object | Extra claims the app's `ui.toolScope` can pin as `$link.<name>` (e.g. `{ approvalId: "a1" }`). Names: letters, digits, underscores, starting with a letter, 32 characters at most; values 1 to 200 characters; 8 claims at most. Reserved names (telegramUserId, botAlias, sessionTtlMs, exp, kind, appId) and `sessionId` are refused here. |
| sessionId | string | The session this link is scoped to. Optional when `claims` is given. |
| sessionTtlMs | number | How long the resulting session token lasts once authorized. Default 30 minutes. |
| telegramUserId * | string | The Telegram numeric user id (as a string) allowed to open this link. |
| ttlMs | number | How long the link stays openable before Telegram auth. Default 1 hour. |
app_listInstall and run `@agentproto/app` apps as live agent sessionsapp_list_appliedMount / unmount apps to scopes with dependency validationapp_resyncAn app installed from a catalog (`source.catalogId`) follows that catalog's current entry: a newer release (different digest/commit, version not lower) is staged from the entry's own URL and verified against its digest. Re-check an app installed from git or a `.agentapp` against its source and reinstall it if the source moved. Git: `git ls-remote` for the installed `ref` vs the pinned `source.sha`. `.agentapp`: re-download and compare the bundle's verified `sha256` with the pinned one. Returns `{changed:false}` when current, `{changed:true, from, to}` after a reinstall (data dir kept). Apps installed from a local `dir` have no source to resync.| Parameter | Type | Description |
|---|---|---|
| appId * | string |
app_runInstall and run `@agentproto/app` apps as live agent sessions| Parameter | Type | Description |
|---|---|---|
| access | object | Named auth-profile pin threaded to every spawn's `agent_start`-equivalent (see `agent_start.access`) — e.g. `{ profileRef: "claude-subs-agentik" }` when the adapter's default credential profile is disabled on this host. |
| adapter | string | Deprecated alias of `harness` (`harness` wins when both are set); removed in the next major of @agentproto/runtime. Using it adds a warning. |
| agents | array | Agent ids to run concurrently. Omit to run every agent the app bundles. Ignored when `sequence` is set. |
| appId * | string | |
| cwd | string | Working directory for spawned sessions. Defaults to the app's installed `dir`, and the sessions then belong to the app's own workspace (`app-<slug>`). |
| harness | string | Harness slug. Omitted: each agent resolves its own (AGENT.md `metadata.harness`, or the deprecated `metadata.adapter`, then the model prefix). Given: used for every agent and recorded on the run + each session. |
| model | string | Model id passed through to each spawned session. This wins over the AGENT.md frontmatter's own `model`; when both are omitted, the adapter keeps its default model. |
| prompt | string | Prompt to send to each spawned agent session. |
| scopeId | string | When passed, refuse to run if the app is not applied to this scope. |
| sequence | array | Agent ids to run ONE-AT-A-TIME in this order — each waits for the previous to finish before the next spawns. |
| wait | boolean | Whether a sequential run waits for every agent to finish before returning. Defaults to true. With sequence + false, returns after the first spawn and continues in the background; poll with app_status. |
app_session_eventsAPP-ONLY: read one session's structured events.jsonl since a cursor, for the live-session widget's right pane. Not for agent use — see `GET /sessions/:id/events`.| Parameter | Type | Description |
|---|---|---|
| limit | number | Max events to return. Default 500. |
| since | number | Only return events with seq greater than this cursor. Default 0. |
app_session_treeAPP-ONLY: return the session hierarchy as a nested tree, for the live-session widget's left pane. Not for agent use — see `session_tree`.| Parameter | Type | Description |
|---|---|---|
| onlyAlive | boolean | When true, only include sessions with status running/starting. |
app_skill_getReturn the skill files for an installed app. Reads the skill directory from disk at call time and returns every file's content (utf-8 text only — binary files are skipped with a warning in the response). The host agent (Cowork) calls `save_skill` with this content — the daemon exposes the content; it never writes the host manifest directly. Errors if the app has no skill.| Parameter | Type | Description |
|---|---|---|
| appId * | string |
app_statusInstall and run `@agentproto/app` apps as live agent sessions| Parameter | Type | Description |
|---|---|---|
| appRunId * | string | |
| full | boolean | Include full session descriptors and workflow-run step outputs. Defaults to false (compact). |
app_stopInstall and run `@agentproto/app` apps as live agent sessions| Parameter | Type | Description |
|---|---|---|
| appRunId * | string |
app_tool_callCall one of an installed app's UI-exposed tools — the allowlist set at `defineApp({ ui: { tools: [...] } })` time (`app_install`'s `record.ui.tools`). A tool id prefixed `imported:<alias>/<toolName>` dispatches through an imported MCP server (same proxy `mcp_imported_call` uses); every other id dispatches through the daemon's own registered tools (same reach-in routine/cron `target.tool` dispatch uses).| Parameter | Type | Description |
|---|---|---|
| appId * | string | |
| args | object | Tool arguments. Default: empty object. |
| tool * | string | A tool id from the app's `ui.tools` allowlist. |
app_tunnelCreate a public tunnel for an agentproto app's UI (its `ui.port`) and, optionally, return the Telegram miniapp deep link for a session. Loads the app manifest from `dir` (or takes an explicit `targetPort`), creates the tunnel through the daemon's tunnel registry, and returns `{ tunnelId, url, provider, targetPort, name?, hostname?, sessionLink? }`. Private by default (the returned `url` is a signed link with a TTL). With `hostname`, uses the `cloudflare-named` provider and the daemon's already-registered named-tunnel creds — no secret is passed by the caller.app_unapplyMount / unmount apps to scopes with dependency validation| Parameter | Type | Description |
|---|---|---|
| appId * | string | |
| scopeId | string | Scope to unapply from. Defaults to 'root'. |
app_uninstallRemove an installed app's record. Refuses if the app is applied to any scope (unapply first via app_unapply) or has a running app_run (stop it first via app_stop).| Parameter | Type | Description |
|---|---|---|
| appId * | string |
app_updatesCheck installed apps that came from a catalog (`app_install {catalogUrl}`, recorded as `source.catalogId`) against that catalog's current entry, without installing anything. Returns `{ updates: [{appId, from, to, catalogUrl, stale?}], upToDate, notListed, untracked }`: an entry is an update when its pin (bundle sha256 / git commit) differs and its version is not lower than the installed one; `notListed` = the catalog no longer lists the app (or is unreachable); `untracked` = remote installs not tied to a catalog (check those with `app_resync`). Apply an update with `app_resync {appId}`.| Parameter | Type | Description |
|---|---|---|
| appId | string | Only check this app. |
| refresh | boolean | Bypass the 5-minute in-memory catalog cache. |
auth_profile_createCreate a named auth profile: write the credential to the OS keychain at a derived slot, then record its metadata. Supports both `oauth-bearer` (subscription) and `api-key` methods. The `credential` is INPUT-ONLY — it is stored, never returned; the response carries a one-way `fingerprint` so you can confirm which secret landed. An `oauth-bearer` profile may instead give `source: "claude-code-oauth"` to self-refresh from the local Claude Code login on every spawn, storing no secret at all — give exactly one of `credential` / `source`. Rejects a duplicate id.| Parameter | Type | Description |
|---|---|---|
| codexHome | string | Codex login home for a `source: "codex"` profile (absolute path, or `~/…`): the directory holding THIS profile's auth.json. It becomes the spawn's CODEX_HOME. One ChatGPT login is bound to one workspace, so use one home per workspace and pin it with `subaccount: { kind: "workspace", id: <the login's account id> }`. |
| credential | string | The raw secret (subscription bearer or API key). Stored, never echoed. Mutually exclusive with source; required unless source is given. |
| credentialRef | string | Optional explicit keychain slot; omit to derive from endpoint+method. Ignored for a source-backed profile. |
| endpoint * | string | Billing endpoint / vendor (anthropic, openrouter, moonshot, …). |
| id * | string | Stable, unique profile id (e.g. anthropic-sub). |
| label | string | Optional human-readable name. |
| method * | string | oauth-bearer for a subscription; api-key for a gateway/vendor key. |
| routes | array | Additional billing routes this one credential also serves, beyond `endpoint` (e.g. ["opencode-go"] for a key billed on both the opencode-go and opencode routes). |
| source | string | Self-refreshing credential source (oauth-bearer only, e.g. "claude-code-oauth") — no secret is stored. Mutually exclusive with credential. |
| subaccount | object | Sub-account kind (org, workspace, project…). |
auth_profile_deleteDelete a named auth profile and its keychain credential. Idempotent: a missing id returns `{ deleted: false }`. The keychain entry is removed only when no other profile still references the same slot.| Parameter | Type | Description |
|---|---|---|
| id * | string | The profile id to delete. |
auth_profile_importImport a credential DISCOVERED by `auth_discover_credentials` into a named auth profile (WS6). Materializes source-backed where possible (claude-code → the self-refreshing `claude-code-oauth` source; codex/gemini → their external file-based login sources), else COPIES the located api-key (env / `~/.hermes/config.yaml`) into the keychain. The method is fixed by `origin` — a subscription bearer can never be stored as an api-key. Refuses unless the credential is STILL discovered right now. The secret is INPUT-only: the response carries non-secret metadata + a one-way `fingerprint` and the stamped `origin` (never the credential). Rejects a duplicate id.| Parameter | Type | Description |
|---|---|---|
| codexHome | string | Origin `codex` only: import the login found in this Codex home (absolute or `~/…`, as listed by auth_discover_credentials) as a profile carrying `codexHome`. |
| endpoint * | string | Billing endpoint to import (must be one the origin serves, e.g. anthropic). |
| id | string | Explicit profile id; defaults to `<origin>-<endpoint>`. |
| label | string | Optional human-readable name. |
| origin * | string | Discovery origin to import from (from auth_discover_credentials). |
auth_profile_refresh_modelsRe-sync a `mode: "allow"` profile's curated `ids` against the CURRENT model catalog for its endpoint — fixes curation drift, where an allowlist generated once at import/provision time never picks up models the catalog adds later or drops models it retires. Re-runs the same enumeration (`catalog_provider_models` for the profile's endpoint) that would build the list today and replaces `ids` with it. Explicit and opt-in: nothing calls this automatically, so a profile is only ever touched when this tool is invoked on it by name. Rejects a profile with no `mode: "allow"` curation (a `mode: "all"` profile already tracks the live catalog on every read, so there is nothing to refresh). Returns the updated profile plus the `added`/`removed` id diff.| Parameter | Type | Description |
|---|---|---|
| id * | string | The profile id to refresh. |
auth_profile_set_enabledEnable or disable a whole named auth profile (WS2). A disabled profile is skipped by the eligibility predicate entirely, so every model it would otherwise bill drops to non-runnable — a REAL persisted state, distinct from the derived `runnable` flag. Metadata-only: the keychain credential is untouched. Enabling clears the flag (absent = enabled). Returns the updated non-secret profile.| Parameter | Type | Description |
|---|---|---|
| enabled * | boolean | true to enable, false to disable. |
| id * | string | The profile id to enable/disable. |
auth_profile_set_modelsSet a profile's per-model curation allowlist (WS3). `mode: "all"` (the default when a profile has no curation) services every eligible model and CLEARS any stored allowlist. `mode: "allow"` narrows the profile to exactly `ids` — each a catalog `vendor/product` or route-qualified `ref`; a curated profile stays endpoint-eligible but only its chosen model refs become runnable. Metadata-only. Returns the updated non-secret profile.| Parameter | Type | Description |
|---|---|---|
| id * | string | The profile id to curate. |
| ids | array | Model identities to allow when mode=allow (catalog vendor/product or route-qualified ref). Ignored for mode=all. |
| mode * | string | all = service every eligible model; allow = only the listed ids. |
auth_profile_updateUpdate a named auth profile's `label`, `costBudget` and/or (Codex profiles only) `codexHome` (never the credential, credentialRef, source, disabled, or models fields; use auth_profile_set_enabled / auth_profile_set_models for those). Each field is tri-state: OMIT it to leave the current value untouched, pass `null` to clear it, or pass a value to set it. At least one of `label` / `costBudget` / `codexHome` must be given. `label` is trimmed and must be non-blank (up to 200 characters) once set. Returns the updated row with the same KEY IDENTITY auth_profile_list computes (`keyStatus`, `fingerprint`, `last4`); never the secret. The row is FULL by default (includes `costBudget`, since this is the tool that sets it); pass `full: false` for the compact projection auth_profile_list uses by default.| Parameter | Type | Description |
|---|---|---|
| codexHome | string | New Codex login home (absolute or `~/…`; `source: "codex"` profiles only), or null to clear it. Omit to leave it unchanged. |
| costBudget | object | Windowed spend ceiling in USD. |
| full | boolean | Include costBudget in the returned row (default true). |
| id * | string | The profile id to update. |
| label | string | New human-readable name, or null to clear it. Omit to leave the current label unchanged. |
browser_click| Parameter | Type | Description |
|---|---|---|
| button | string | Default left. |
| clickCount | number | Default 1 (2 for a double-click). |
| selector * | string | CSS selector of the element to click. |
browser_evaluate| Parameter | Type | Description |
|---|---|---|
| awaitPromise | boolean | Await the expression if it returns a promise. Default true. |
| expression * | string | JavaScript expression to evaluate. |
| maxResultBytes | number | Cap on the serialized result size. |
| returnByValue | boolean | Serialize the result by value. Default true. |
browser_extract_textbrowser_fill| Parameter | Type | Description |
|---|---|---|
| clear | boolean | Clear the existing value first. Default true. |
| selector * | string | CSS selector of the input/textarea element. |
| value * | string | Text to type. |
browser_get_dombrowser_list_tabsbrowser_navigate| Parameter | Type | Description |
|---|---|---|
| url * | string | URL to navigate to. |
browser_press_key| Parameter | Type | Description |
|---|---|---|
| count | number | NOT SUPPORTED by Bureau: refused with an error. Call again to repeat. |
| key * | string | Key name (Enter, Tab, Escape, ArrowDown, …) or one printable character. |
| modifiers | array | Modifier keys held for this press. |
| selector | string | NOT SUPPORTED by Bureau: refused with an error. Click the element first. |
browser_screencast_frame| Parameter | Type | Description |
|---|---|---|
| tabId | string | Owned tab being recorded. Bureau requires it. |
browser_screencast_start| Parameter | Type | Description |
|---|---|---|
| everyNthFrame | number | |
| format | string | |
| fps | number | Frames per second Bureau keeps (default 3, clamped to [1, 10]). |
| maxHeight | number | |
| maxWidth | number | |
| quality | number | |
| tabId | string | Owned tab to record. Bureau requires it. |
browser_screencast_stop| Parameter | Type | Description |
|---|---|---|
| encode | boolean | Encode the frames into video.mp4 (default true). |
| tabId | string | Owned tab being recorded. Bureau requires it. |
browser_screenshotbrowser_scroll| Parameter | Type | Description |
|---|---|---|
| selector | string | CSS selector to scroll into view. Takes precedence over x/y. |
| x | number | Horizontal scroll delta in CSS px. Default 0. Ignored if `selector` is set. |
| y | number | Vertical scroll delta in CSS px. Default 0. Ignored if `selector` is set. |
catalog_diffDiff the LLM pricing catalog against the last call's stored baseline. Returns `appeared` / `removed` model ids, `priceChanged` (prev/next inputPer1M & outputPer1M), and `freeToPaid` / `paidToFree`. Side-effecting by design: each call also records the current catalog as the new baseline, so consecutive calls report consecutive changes. First call ever reports the whole catalog as `appeared`. `refresh` is accepted for symmetry with quota_status and ignored: every call already reads the live catalog.| Parameter | Type | Description |
|---|---|---|
| refresh | boolean | Hint that a fresh read is wanted. Accepted and ignored: nothing is cached, every call already reads the live catalog. |
catalog_modelsRead-only catalog of runnable models + routes (daemon `GET /catalog/models`)command_executeRun a shell command on the host running the runtime. The command basename must be in `<workspace>/.agentproto/allowed-commands.json`; default-deny otherwise. Captures stdout / stderr / exit code and returns them as JSON. Use this to drive local CLIs (Claude Code, gh, pnpm, …) from a remote agent. This is for SHORT synchronous commands: the subprocess is bound to this RPC and hard-killed at the `timeoutMs` cap, so long-running work (a build, a test gate, a `claude -p` run) belongs in a persistent session that outlives the call — the terminal_start / agent_start MCP tools, or `agentproto sessions start` on the CLI.| Parameter | Type | Description |
|---|---|---|
| args | array | Argv array. Passed verbatim — no shell expansion (we spawn with shell:false so quoting doesn't bite). |
| command * | string | Executable name or absolute path. Must be allowlisted by basename in the workspace's allowed-commands.json. |
| cwd | string | Working directory, workspace-relative or an absolute path inside the workspace. Defaults to the workspace root. |
| origin | string | Source label for this run — the calling channel/harness (codex, cowork, vscode, cron, …). Descriptor-only: groups the minted command session under a source node in the tree, same semantics as agent_start's `origin`. Defaults to "command_execute" when omitted, so every command session is still labeled. |
| stdin | string | Optional input piped to the process's stdin. |
| timeoutMs | number | Hard kill after this many ms. Defaults to ${DEFAULT_TIMEOUT_MS}; capped at ${MAX_TIMEOUT_MS}. |
command_log_tailRead the JSONL audit log for `command_execute`| Parameter | Type | Description |
|---|---|---|
| cwd | string | Restrict the listing to invocations spawned with this cwd (workspace-relative or absolute). Ignored with `sessionId`. |
| lastN | number | Max invocations to return when listing (ignored with `sessionId`). Default 50, max 500. |
config_getRead `~/.agentproto/config.json` over the declared key registry (`config-schema.ts`'s `CONFIG_KEYS`). Omit both `keys` and `section` to get EVERY registered key; a wildcarded registry entry (e.g. `acpAgents.*.bin`) expands to one row per concrete key actually present in the file, never an invented one. Each row reports the raw file `value`, the `effective` value actually in force right now (env var beats config file beats registry default, using the daemon's own resolvers where one exists), `source` (which of those three won), `envOverride` when an env var is shadowing the file, `apply` ("hot" = takes effect on next use; "restart" = only after a daemon restart), `pendingRestart` (a restart-class key whose file value differs from what the running daemon booted with), `writable` (whether config_set will accept a write here), and, for a secret field, `secret: { set, fingerprint?, last4? }` computed server-side; the credential itself is NEVER returned, by this tool or any other. Also carries registry metadata for a UI to render a typed control without its own copy of the registry: `label`, `help`, `section`, `default` (when the registry has one), and `valueType` ("boolean" | "number" | "integer" | "string" | "enum" | "string[]" | "object" | "unknown", derived from the key's own zod schema) plus `enum` (the allowed values, when valueType is "enum") and `min`/`max` (when the number schema declares bounds). Also returns a top-level `revision` (sha256 of the file bytes, for `config_set`'s optimistic-concurrency `revision`) and `path` (the config file's absolute path).| Parameter | Type | Description |
|---|---|---|
| keys | array | Dotted paths to read (e.g. "daemon.port", "acpAgents.*.bin" to expand every present agent, or a concrete "acpAgents.myagent.bin" for just one). Omit for every registered key. |
| section | string | Keep only registry keys in this section. |
config_setWrite ONE key in `~/.agentproto/config.json`, allowlisted against the key registry (`config-schema.ts`'s `CONFIG_KEYS`): an unknown key or one marked `writable: false` (a secret field, since wallet secrets belong in auth profiles, or a daemon lockout field that could cut the app off from the daemon) is rejected outright, never written. A `models.<role>` write whose model id the catalog does not know still succeeds but returns `warnings`. Give exactly one of `value` (type-checked against the key's own schema, then the WHOLE resulting config is re-validated before saving) or `unset: true` (delete the key). Pass `revision` (from a prior `config_get`) to reject the write with `stale_revision` if the file changed since; omit it to write unconditionally. Never restarts anything: the result's `applied` says "hot" (takes effect on next use) or "restart-required", and `shadowedByEnv` names an env var that already overrides this key's file value, if any. Emits a `config:changed` event on success. Registered on the root /mcp server only; a scoped child orchestrator cannot call this. A session caller cannot write `defaults.messaging.*`, `defaults.identity.*` or `defaults.tasks.operatorDelegates` (`operator_only`): only the operator may.| Parameter | Type | Description |
|---|---|---|
| key * | string | Dotted registry path, e.g. "daemon.label". |
| revision | string | Optimistic-concurrency token from a prior config_get; omit to write unconditionally. |
| unset | boolean | Delete the key. Mutually exclusive with `value`. |
| value | any | The new value. Mutually exclusive with `unset`. |
conversation_exportExport a daemon transcript to a target adapter's native store (claude-code today)conversation_locateBidirectional lookup between an agentproto session and its provider-native conversation transcript. Given an agentproto session id (sess_xxx) it finds the original native conversation file the session is attached to (forward); given a native transcript path (a claude-code jsonl, root OR subagent) it finds the owner session/workspace (reverse). Scans every workspace bucket's persisted index (~/.agentproto/workspaces/<slug>/conversations.jsonl) — no daemon round-trip. Useful after session_gc({forget:true}) when the session descriptor is gone but the on-disk transcript still exists. Nothing found returns `{ found: false, reason }` — a normal outcome, not an error. Read-only.| Parameter | Type | Description |
|---|---|---|
| target * | string | agentproto session id (sess_xxx) or a native transcript jsonl path. |
conversation_readRead the provider-native conversation behind any session (agent-cli or PTY)create_agentCreate an AIP-42 agent manifest (agent/v1 AGENT.md) for a slug in this workspace's `.agents/<id>/AGENT.md` layout. Writes only when absent unless force:true. Returns the resolved path. Validation failures (bad slug/description) are tool errors. `grants` (default none) writes `actions.granted`; you can only grant actions your own manifest holds.| Parameter | Type | Description |
|---|---|---|
| description | string | One-paragraph purpose. Defaults to "Agent <id>.". |
| force | boolean | Overwrite an existing manifest. Defaults to false. |
| grants | array | Actions to write to `actions.granted` (e.g. ["create_tool"]). Default: none. Each must be granted to the calling agent's own manifest. |
| id * | string | Agent slug (AIP-42 id; an @owner/ prefix is allowed). |
| model | string | Model id string. Defaults to "${DEFAULT_CREATED_AGENT_MODEL}". |
create_toolAuthor an AIP-14/AIP-30 tool pair (`.agentproto/tools/<id>/TOOL.md` + `.agentproto/drivers/<id>/DRIVER.md`) in this workspace. GATED by the CALLER'S own AIP-42 manifest `actions.granted` (default-denied; the daemon resolves the caller identity — no agent id is accepted from the payload). A tool cannot be overwritten before its minimum lifetime, and only a tool this verb authored may be overwritten. Use `delete_tool` to remove one (bounded by a per-day delete limit). Created tools default to approval:"always".| Parameter | Type | Description |
|---|---|---|
| approval | string | ApprovalClass, defaults to "always". |
| description * | string | One-paragraph purpose. |
| driver | object | kind:cli binary (e.g. "node"). |
| force | boolean | Overwrite an authored tool (still bounded by marker + minLifetime). |
| id * | string | AIP-14 tool id (regex ^[a-z][a-z0-9._-]{1,63}$). |
| inputs | object | AIP-16 JSON Schema inputs block. |
| name | string | |
| outputs | object | AIP-16 JSON Schema outputs block. |
| version | string | Semver, defaults to 1.0.0. |
cron_createRecurring daemon jobs (opt-in)cron_deleteRecurring daemon jobs (opt-in)cron_listRecurring daemon jobs (opt-in)cron_runRecurring daemon jobs (opt-in)daemon_healthCheap in-process liveness probedecision_collect_evidenceStep 1 of `decision-route`: collect BOUNDED metadata evidence for a git range (counts, change types, risk categories, completeness) — never code or hunks; paths only if the DECISION.md evidence policy opts in; secrets scrubbed. Returns the frozen range and a stage `trace`. Failures come back as data.| Parameter | Type | Description |
|---|---|---|
| base | string | |
| cwd * | string | Directory inside the repo to read the range from. |
| head | string | |
| policy | string | The DECISION.md contents. Or pass `policyPath`. |
| policyPath | string | DECISION.md path relative to `cwd`; the text is echoed back as `policy`. |
| supplied | object | Consumer-built evidence (same export policy applies). |
decision_decideResolve ONE closed-set decision from a DECISION.md policy plus domain evidence: ordered rules first (mandatory floors cannot be downgraded), then at most one bounded Jev typed-choice classifier call, then the policy's conservative default. Returns `{ choice, source, matchedRules, probabilities?, confidence?, margin?, policyHash, evidenceHash, classifierConfigHash, escalationHistory, truncated, incompleteEvidence, status }` — never an error result for a failed classification, never a mutation. `source` is rule | rule-floor | classifier | escalation | default; `status` is `decided` or `fallback` (the conservative default applied — a safe answer, not a trusted one, and never cached). Only choices declared in the policy can appear. The default export policy sends no paths/code/messages to the classifier. No escalation runs here; use the `decision_*` workflow stage tools for the profile-gated harness escalation.| Parameter | Type | Description |
|---|---|---|
| evidence * | object | Domain evidence object the rules/classifier evaluate (counts, flags, risk signals). Paths/code/messages are stripped before the classifier unless the policy's evidence policy allows them. |
| policy * | string | The DECISION.md contents (markdown with YAML frontmatter). |
decision_run_reviewStep 6 of `decision-route`: run the selected review binding through the review runner. `mode: "shadow"` (default) starts NOTHING and only reports what would run; `"enforce"` starts the review with a profile deadline and cancels it on deadline/abort.| Parameter | Type | Description |
|---|---|---|
| cwd * | string | |
| manifestPath | string | |
| mode | string | |
| nocache | boolean | |
| range | object | |
| requesterSessionId | string | |
| select * | object |
decision_select_reviewStep 5 of `decision-route`: map the closed choice to a review BINDING (not a model id) and preflight every reviewer preset, fallback preset and recovery preset/role override of that binding against the profile. Any non-entitled target refuses the whole selection — nothing is substituted, and a conservative deep route cannot bypass the profile.| Parameter | Type | Description |
|---|---|---|
| bindings | object | Default: skip/light→light, standard→local, deep→deep. |
| cwd * | string | |
| escalate * | object | |
| freeBindings | object | Free-only overrides. Default: deep→deep-free. |
| manifestPath | string |
decision_stage_classifyStep 3 of `decision-route`: ONE unresolved-case Jev direct-API classification (no retries, profile-gated). Skipped when rules settled it, the policy disables the classifier or the profile disables Jev. Normal low confidence is NOT a human request — it flows to escalation.| Parameter | Type | Description |
|---|---|---|
| evidence * | object | |
| rules * | object |
decision_stage_escalateStep 4 of `decision-route`: at most ONE escalation through the configured agent harness, only when still unresolved. The execution profile validates adapter+model (incl. rotate fallbacks, auth profile, OpenRouter) BEFORE spawn; unknown identity fails closed; placement (e.g. E2B) grants no entitlement. The session is read-only-posture with no MCP servers; `escalation.toolControls` reports configured vs enforced limits honestly (the harness's built-in tools are not disabled).| Parameter | Type | Description |
|---|---|---|
| classify * | object | |
| evidence * | object | |
| rules * | object |
decision_stage_rulesStep 2 of `decision-route`: apply the DECISION.md rules/floors with ZERO model calls. `settled:true` means a rule decided; otherwise later stages run.| Parameter | Type | Description |
|---|---|---|
| evidence * | object |
decision_validate_verdictStep 7 of `decision-route`: fold the decision, escalation and review into one report. `approved` is true only for a real passing verdict from lanes that stayed inside the profile; completed / provider-unavailable / human-input-required / incomplete / timeout / cancelled / refused / failed / shadow are separate states, never approvals.| Parameter | Type | Description |
|---|---|---|
| escalate * | object | |
| review * | object | |
| select * | object |
delete_toolRemove a created AIP-14/AIP-30 tool pair, bounded by its minimum lifetime and a per-agent/day delete limit. Same caller-bound `actions.granted` gate as `create_tool`.| Parameter | Type | Description |
|---|---|---|
| id * | string | AIP-14 tool id to remove. |
device_addRegister a HOST from a pairing offer URL minted with `agentproto pair offer --host` on the other machine — after this, device_status / `agentproto devices status|exec` can drive it. Refuses (no dial attempted) an offer that isn't host-scoped: a plain `pair offer` grants remote-control only, not host registration.| Parameter | Type | Description |
|---|---|---|
| name | string | Label for this host (default: its fingerprint). |
| offerUrl * | string | The `agentproto://pair?…` offer URL, minted with --host. |
device_listList devices known to this daemon: fingerprint, name, role (client|host), kind (browser|cli|daemon, best-effort from the client's self-reported name; always daemon for a host), rendezvous, createdAt, lastSeen, scope (host, when granted via `pair offer --host`), online (a channel/forward is active right now or a recent contact succeeded), and for hosts lastProbeAt/lastError (last contact attempt and why it failed). Joined CI hosts that are gone (said goodbye, or unreachable past the TTL) are hidden unless includeEnded is set; a manually added host unreachable past the TTL shows stale: true. Read-only.| Parameter | Type | Description |
|---|---|---|
| includeEnded | boolean | Also list ended (gone) joined hosts, marked ended: true. |
device_offerPRIVILEGED — create a one-time connection link for a new device (phone app). The device that opens it asks for access and shows a number; a human must confirm on the machine's confirmation channel (Telegram card) by comparing that number before anything is granted. `apps` is "*" (every app with a UI) or the exact app ids the device may open; the control of the whole machine is never granted. The link is valid 10 minutes by default and works once. `deliver: "telegram"` (default when Telegram is set up) sends it as a message with a button and answers WITHOUT the link; `deliver: "return"` returns the link (a secret: never log or repeat it). Manage devices with device_list / device_rename / device_revoke.| Parameter | Type | Description |
|---|---|---|
| apps * | any | "*" for every app with a UI, or the app ids the device may open. |
| baseUrl | string | Public https URL of this daemon (its tunnel). Default: $AGENTPROTO_PUBLIC_HTTP_ORIGIN. |
| deliver | string | |
| label | string | Name shown for the device if it does not give one. |
| sessionsRead | boolean | Also allow reading the daemon's session routes (a chat viewer needs it). |
| ttlMinutes | number | Link lifetime in minutes. Default 10. |
device_pair_pendingList the connection requests waiting for a human confirmation (device name, platform, the number it shows, what it asked to open, when it expires). Never returns a secret. It only informs: confirming is done by a human on the confirmation channel (the Telegram card or the approval page).device_promptSend a prompt (a follow-up turn) to a session on a registered HOST device — the write counterpart of device_sessions, forwarded live over the host's E2E channel. sessionId accepts EITHER the host session id or a local controller session id spawned with `sandbox: "device:<fp>"` (P7a — the controller descriptor's hostSessionId mapping is substituted when the exact id 404s). Queueing rules are identical to a local agent_prompt: fire-and-forget by default, queued behind the session's in-flight turn, `interrupt`/`force` to redirect or jump the queue. wait: true blocks until the prompted turn drains. Requires the HOST daemon to have opted in (agentproto devices allow-spawn on) over a host-scoped pairing — the same gate as device spawn; refused for a plain remote-control pairing or an unknown target.| Parameter | Type | Description |
|---|---|---|
| force | boolean | Mid-turn: jump the FRONT of the FIFO (agent_prompt's force). Default false. |
| interrupt | boolean | Mid-turn: redirect instead of queueing (agent_prompt's interrupt). Default false. |
| maxWaitMs | number | Give up waiting after this long (ms). Default: wait forever. |
| pollMs | number | Poll cadence while waiting, ms. Default 1000. Each poll is a fresh E2E dial. |
| prompt * | any | Non-empty string, a content block, or an array of content blocks. |
| sessionId * | string | The session id ON the host — or a controller session id spawned against `device:<fp>` (resolved via its hostSessionId). |
| target * | string | The host's fingerprint or name (see device_list). |
| wait | boolean | Block until the prompted turn drains. Default false. |
device_renameRename a device (fingerprint or its current name) to a new label. Cosmetic only — no effect on pairing or auth.| Parameter | Type | Description |
|---|---|---|
| name * | string | The new name. |
| target * | string | The device's fingerprint or current name (see device_list). |
device_revokeRevoke a device by fingerprint or name — drops its rendezvous connections so it can no longer reconnect. Same effect as pair_revoke.| Parameter | Type | Description |
|---|---|---|
| target * | string | The device's fingerprint or name (see device_list). |
device_sessionsRead-only: a registered HOST device's own session list (compact), or (with sessionId) a tail of one session's output — forwarded live over the host's E2E channel (HostRegistry.forwardHttp), the same path device_add / `agentproto devices exec` uses. If the host is offline, falls back to the last successful response for this exact query (stale: true, capturedAt: when it was captured) instead of failing outright — still rejects if there's nothing cached, or the target isn't a registered host at all.| Parameter | Type | Description |
|---|---|---|
| clean | boolean | Strip ANSI codes and drop framing lines (with sessionId). |
| lastN | number | Max output lines to return (with sessionId). Default 80, max 500. |
| sessionId | string | Tail this session's output instead of listing all sessions. |
| target * | string | The host's fingerprint or name (see device_list). |
edit_fileSurgically edit an existing file: replace an exact, unique substring (old_string) with new_string. PREFER THIS over write_file for any change to an existing file — it cannot drop unrelated content, and it works regardless of how large the file is or whether you read all of it. old_string must match the file byte-for-byte (including whitespace) and appear exactly once, unless replace_all is set.| Parameter | Type | Description |
|---|---|---|
| new_string * | string | Replacement text |
| old_string * | string | Exact text to replace; must be unique in the file (or set replace_all) |
| path * | string | File path relative to repo root |
| replace_all | boolean | Replace every occurrence instead of requiring a unique match. Default false. |
environmentOptional environment labelfetch_pageRead a URL over plain HTTP — no browser, instant. Returns clean text: { title, text (markdown, boilerplate stripped), url (after redirects), blocked }. `blocked: true` means the response looks anti-bot-gated (403/429/503, or a known challenge page from Cloudflare/Akamai/PerimeterX/Datadome/Incapsula) — `text` is omitted in that case; escalate to `browser_navigate` + `browser_extract_text` (or `browser_click`/`browser_fill`/`browser_scroll` if the page needs interaction first) instead of retrying the same fetch. Try this FIRST for any public page — instant, no browser — and only reach for the browser tools when `blocked: true` or the content needs JS/interaction to appear.| Parameter | Type | Description |
|---|---|---|
| timeoutMs | number | Default 15000. |
| url * | string | URL to fetch. |
get_reviewFetch the latest CHANGES_REQUESTED review on the PR: body + inline comments with file path, line, and text.gh_discussion_commentPost a markdown comment on a discussion. Requires the discussion node id (provided by the workflow).| Parameter | Type | Description |
|---|---|---|
| body * | string | Markdown comment body |
| discussionId | string | Discussion node id (default: current) |
gh_get_discussionRead a discussion: title, body, url, category, and comments.| Parameter | Type | Description |
|---|---|---|
| number | number | Discussion number (default: current) |
gh_get_issueRead an issue: title, body, author, state, labels, and comments.| Parameter | Type | Description |
|---|---|---|
| number * | string | Issue number |
gh_get_prRead PR metadata: title, body, author, state, labels, base/head refs.| Parameter | Type | Description |
|---|---|---|
| number | string | PR number (default: current) |
gh_labelAdd (and/or remove) labels on an issue or PR. Use only labels that exist (call gh_list_labels first).| Parameter | Type | Description |
|---|---|---|
| add | array | Labels to add |
| number | string | Issue/PR number (default: current) |
| remove | array | Labels to remove |
gh_list_labelsList the labels that exist in this repository (name + description). Apply only labels from this list.gh_open_prCreate a branch from the current HEAD, commit all working-tree changes, push, and open a PR. Use to deliver changes as a reviewable PR.| Parameter | Type | Description |
|---|---|---|
| base | string | Base branch to target (default: the current branch / PR head) |
| body * | string | PR body (markdown) |
| branch * | string | New branch name, e.g. bot/fix-123 |
| commitMessage | string | Commit message (default: derived from title) |
| title * | string | PR title |
gh_pr_commentPost a markdown comment on the PR (or issue, with number).| Parameter | Type | Description |
|---|---|---|
| body * | string | Markdown comment body |
| number | string | PR/issue number (default: current PR) |
gh_pr_reviewSubmit a GitHub PR review. event: APPROVE, REQUEST_CHANGES, or COMMENT.| Parameter | Type | Description |
|---|---|---|
| body * | string | Review body in markdown |
| event * | string |
gh_wikiRead, list, or write the repository wiki (a separate git repo). To edit a page: read it, then write the COMPLETE new content.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| content | string | Complete page markdown (write only) |
| message | string | Commit message (write only) |
| page | string | Page name without .md, e.g. "Home" or "Getting-Started" |
git_diffGet unified diff for packages/, adapters/, scripts/, .github/, specs/. Defaults to the PR diff (origin/main...HEAD).| Parameter | Type | Description |
|---|---|---|
| from | string | Base ref (default: origin/main) |
| maxChars | number | Truncate at this many chars (default: 40000) |
| to | string | Head ref (default: HEAD) |
git_logGet one-line commit log between two refs. Defaults to origin/main...HEAD.| Parameter | Type | Description |
|---|---|---|
| from | string | |
| to | string |
grep_repoSearch the repo for a pattern across .ts, .mjs, and .md files (max 40 results, 5 per file).| Parameter | Type | Description |
|---|---|---|
| glob | string | Optional file glob filter |
| pattern * | string | Grep pattern (basic regex) |
harness_capabilitiesDiscover what an installed adapter can do on this host| Parameter | Type | Description |
|---|---|---|
| adapter | string | Keep only this adapter slug. Omit for every installed adapter. |
harness_installList installed harnesses (agent CLIs), page one harness's models, install one by slug (`adapter_list` / `adapter_models` / `adapter_install` are deprecated aliases)harness_listList installed harnesses (agent CLIs), page one harness's models, install one by slug (`adapter_list` / `adapter_models` / `adapter_install` are deprecated aliases)harness_modelsList installed harnesses (agent CLIs), page one harness's models, install one by slug (`adapter_list` / `adapter_models` / `adapter_install` are deprecated aliases)harness_preset_createPersisted harness→auth-profile presetsharness_preset_deletePersisted harness→auth-profile presetsharness_preset_listPersisted harness→auth-profile presetsharness_preset_set_defaultPersisted harness→auth-profile presetsjoin_token_createMint a long-lived, revocable, reusable join token: a value for a box daemon's AGENTPROTO_JOIN env var so it auto-registers as a host on boot, no offer URL to relay by hand. Shown ONCE — never persisted or echoed again by join_token_list.| Parameter | Type | Description |
|---|---|---|
| maxUses | number | Reuse ceiling. Default unlimited. |
| name * | string | Label for this token (e.g. "ci-reviewer"). |
| ttlMs | number | Time-to-live in ms. Default 90 days. |
join_token_listList join tokens: id, name, createdAt, expiresAt, maxUses, useCount, lastUsedAt, revokedAt. Never returns the token's secret. Read-only.join_token_revokeRevoke a join token by id or name — stops its standing accept loop; a box already joined through it keeps its host registration (revoke the device itself via device_revoke to drop that too).| Parameter | Type | Description |
|---|---|---|
| target * | string | The token's id or name (see join_token_list). |
list_browsers| Parameter | Type | Description |
|---|---|---|
| instance | string | Dropped (listed in `notes`): Bureau's browser_list_instances takes no argument. |
| onlyAlive | boolean | Retired daemon filter. Dropped (listed in `notes`): Bureau lists instances, not sessions. |
list_changed_packagesList @agentproto/* public packages touched in this branch diff.list_dirList entries of a directory relative to the repo root.| Parameter | Type | Description |
|---|---|---|
| path | string | Directory path (default: repo root) |
list_eval_reportersEval-reporter backends (e.g. Langfuse)list_provider_presetsGateway presets (Anthropic, Moonshot, OpenRouter, Requesty, DeepSeek, xAI)list_sandbox_providersSandbox provider catalog and credentialsllm_endpoint_list_linksLocal LLM Endpoint proxy sidecar (requires `features.llmEndpoint`)llm_endpoint_set_upstream_linkLocal LLM Endpoint proxy sidecar (requires `features.llmEndpoint`)llm_endpoint_startLocal LLM Endpoint proxy sidecar (requires `features.llmEndpoint`)llm_endpoint_statusLocal LLM Endpoint proxy sidecar (requires `features.llmEndpoint`)llm_endpoint_stopLocal LLM Endpoint proxy sidecar (requires `features.llmEndpoint`)mcp_app_tool_callMCP Apps host: a `tools/call` made by an app UI iframe (not by the model). `tool` must be a tool of this server whose `_meta.ui.visibility` doesn't exclude "app" (the spec default `["model", "app"]` applies when unset), or the tool whose transcript card hosts the iframe; anything else is refused. The call is recorded on the session as `kind: "mcp_app_tool_call"`. Returns the upstream `CallToolResult` verbatim, or `{ isError: true, content: [{ type: "text", text }] }`.| Parameter | Type | Description |
|---|---|---|
| args | object | Tool arguments. Default {}. |
| originToolCallId * | string | Transcript tool_use id of the card hosting the iframe. |
| server * | string | |
| sessionId * | string | |
| tool * | string | Upstream tool name (not namespaced). |
mcp_app_ui_indexMCP Apps host: which tools of one MCP server (as a session's harness names it, e.g. `acme` in `mcp__acme__…`) declare a UI (`_meta.ui.resourceUri`), plus every app-only tool. The server is resolved in the session's scope (session config → project → user → imports). Returns `{ server, status, tools, appOnlyTools, allToolNames, notAppVisibleTools, error?, source? }`; status is ok | unresolved | unreachable | auth_required. Cached; failures are retried at most once a minute.| Parameter | Type | Description |
|---|---|---|
| server * | string | Server alias as the harness names it. |
| sessionId * | string | Session whose transcript mentions the server. |
mcp_app_ui_readMCP Apps host: read one `ui://` resource of a server — its HTML and `_meta.ui` (csp, permissions, prefersBorder, domain). `resourceUri` must be one `mcp_app_ui_index` returned for that server; anything else is refused. Returns `{ resourceUri, html, mimeType, csp?, permissions?, prefersBorder?, domain? }` or `{ error, status }`.| Parameter | Type | Description |
|---|---|---|
| resourceUri * | string | A `ui://…` uri from mcp_app_ui_index. |
| server * | string | |
| sessionId * | string |
mcp_discovered_listDiscover and curate imported MCP serversmcp_importDiscover and curate imported MCP serversmcp_imported_callProxy imported MCP toolsmcp_imported_listDiscover and curate imported MCP serversmcp_imported_removeDiscover and curate imported MCP serversmcp_imported_statusProxy imported MCP toolsmcp_imported_tool_listProxy imported MCP toolsmemory_archiveAIP-72 memory store (`memory.root`, default `~/.agentproto/memory`); anyone proposes, the operator or a supervisor commits; memory-bound agents get a spawn digest in their system promptmemory_dismissAIP-72 memory store (`memory.root`, default `~/.agentproto/memory`); anyone proposes, the operator or a supervisor commits; memory-bound agents get a spawn digest in their system promptmemory_listAIP-72 memory store (`memory.root`, default `~/.agentproto/memory`); anyone proposes, the operator or a supervisor commits; memory-bound agents get a spawn digest in their system promptmemory_readAIP-72 memory store (`memory.root`, default `~/.agentproto/memory`); anyone proposes, the operator or a supervisor commits; memory-bound agents get a spawn digest in their system promptmemory_searchAIP-72 memory store (`memory.root`, default `~/.agentproto/memory`); anyone proposes, the operator or a supervisor commits; memory-bound agents get a spawn digest in their system promptmemory_supersedeAIP-72 memory store (`memory.root`, default `~/.agentproto/memory`); anyone proposes, the operator or a supervisor commits; memory-bound agents get a spawn digest in their system promptmemory_writeAIP-72 memory store (`memory.root`, default `~/.agentproto/memory`); anyone proposes, the operator or a supervisor commits; memory-bound agents get a spawn digest in their system promptmessage_parentChild session reports a result, progress update, or blocker up to its parent supervisor (resolved from the child's recorded `parentSessionId`; no session id argument)| Parameter | Type | Description |
|---|---|---|
| interrupt | boolean | Ask to cancel the parent's in-flight turn and deliver this now. Honoured only when `defaults.messaging.agentInterrupt` is "allow", else delivered as `steer`. Default false. |
| kind | string | report (default) | question | blocker | done | notice. Shown to the parent in the message header. |
| message * | string | The message to deliver to your parent session (plain text). |
| replyTo | string | Id of a parent message this answers (msg_…). |
| urgency | string | fyi | next-turn | steer | interrupt. Default: steer for blocker/question, next-turn otherwise. |
permissions_listHeld permission requests across permission-hold sessionspermissions_respondHeld permission requests across permission-hold sessionspolicy_attachSupervisor completion-policy lifecyclepolicy_cancelSupervisor completion-policy lifecyclepolicy_statusSupervisor completion-policy lifecyclepr_openOpen a pull request on behalf of a SANDBOX session — the host runs `gh pr create` (it holds the token; the box never does) against that session's pushed work branch, and the provenance footer credits the session(s) that actually authored the code, not whoever ran this call. Pass the authoring session ref plus PR title/body; the footer lists each authoring session with its own model, wallet, sandbox provider and cost, and the caller of this tool as 'Opened by'. a calling session may only open a PR for itself or a session it spawned (directly or transitively); the operator (no calling session) is not scoped. Every `gh` argv this runs — the create AND the footer stamp's own `gh pr view`/`gh pr edit`/checkpoint `gh api` reads — is checked against that workspace's allowlist, an argv the entry does not permit stops the run. `gh` runs in the TARGET session's own workspace (its worktree, or for a sandbox session the host checkout of its workspace) and that workspace's allowlist applies, not the daemon's boot workspace's.| Parameter | Type | Description |
|---|---|---|
| body * | string | PR description body. |
| title * | string | PR title. |
read_fileRead a file relative to the repo root. Returns up to ${READ_PAGE} chars; larger files are paged —pass `offset` to read the next slice. IMPORTANT: if the result is marked PARTIAL, you have NOT seen the whole file — do NOT overwrite it with write_file (you would drop the unseen part). Use edit_file for targeted changes, or page through with offset until you have the full content.| Parameter | Type | Description |
|---|---|---|
| offset | number | Byte offset to start reading from (default 0). Use to page large files. |
| path * | string | Path relative to repo root |
role_listEnumerate spawn-time roles and delegation privilegesrun_commandRun an allow-listed build/validation command and return its output (truncated). Allowed: ${ALLOWED_COMMANDS.join(', ')}.| Parameter | Type | Description |
|---|---|---|
| command * | string | One of the allow-listed commands |
| timeoutMs | number | Timeout (default 600000) |
sandbox_execRun one command in a sandbox box (ephemeral, or an existing `sandboxId`) and return exit code + stdout/stderrself_inspectReturn this agent's AIP-42 manifest summary (tools + routines) without requiring knowledge of disk paths. Pass the agent's logical `id` (the `id:` field in its AGENT.md frontmatter); the runtime resolves it to `<workspace>/.agents/<agentId>/AGENT.md` or the app-emitted `<workspace>/.agentproto/agents/<agentId>/AGENT.md`. Returns `{ agentPath, tools, routines }` — each item has at minimum `{ id, description }`. File refs are loaded; string/ref refs are surfaced as-is.| Parameter | Type | Description |
|---|---|---|
| agentId * | string | The agent's logical id (e.g. 'writer'). Matches the `id:` field in the AGENT.md frontmatter. The runtime resolves this to `<workspace>/.agents/<agentId>/AGENT.md` — you do not need to know the absolute disk path. |
session_archiveHide / restore sessions from the canonical list (VS Code "show archived" toggle)session_flag_statusManually correct a session's `awaitingInput` / `awaitingQuestion` classificationsession_listCanonical session list, hierarchy, usage, and resumesession_renameSet or clear a session's user-facing `title` / `label`, or toggle its pinned sort flagsession_restartCanonical session list, hierarchy, usage, and resumesession_set_pinnedSet or clear a session's user-facing `title` / `label`, or toggle its pinned sort flagsession_treeCanonical session list, hierarchy, usage, and resumesession_unarchiveHide / restore sessions from the canonical list (VS Code "show archived" toggle)session_usageCanonical session list, hierarchy, usage, and resumesetup_eval_reporterEval-reporter backends (e.g. Langfuse)setup_sandbox_providerSandbox provider catalog and credentialsskill_importCurate imported skills (a `SKILL.md` folder is copied into `~/.agentproto/skills/<id>/`) for per-session deliveryskill_imported_listCurate imported skills (a `SKILL.md` folder is copied into `~/.agentproto/skills/<id>/`) for per-session deliveryskill_imported_removeCurate imported skills (a `SKILL.md` folder is copied into `~/.agentproto/skills/<id>/`) for per-session deliveryskill_resyncCurate imported skills (a `SKILL.md` folder is copied into `~/.agentproto/skills/<id>/`) for per-session deliveryterminal_inputDrive raw PTY sessionsterminal_killDrive raw PTY sessionsterminal_outputDrive raw PTY sessionsterminal_startDrive raw PTY sessionstool_calls_listRead back normalized ToolCallRecord entries — ONE unified log covering both a command_execute proxy call and an agent's own in-process tool call (Bash, Read, Edit, ...), joined with the owning session's harness/origin/callerSessionId provenance. Pass `sessionId` to fetch one session's calls; omit it to list the most recent calls across recent command + agent-cli sessions.| Parameter | Type | Description |
|---|---|---|
| fields | array | Explicit field projection — keep only these keys per record. Absent: every key (subject to the result preview). |
| full | boolean | Escape hatch to full records. Default (absent): result-preview posture — long `result` text truncated to ~500 chars. `full: true` returns today's unfiltered records. |
| lastN | number | Max records to return. Default 50, max 500. |
tool_helpLong-form documentation for a tool — edge cases, field interactions, examples that don't fit in its short schema description. Read-only.| Parameter | Type | Description |
|---|---|---|
| name * | string | Tool name, e.g. 'agent_start'. |
| topic | string | Optional `##` section heading within the doc to return instead of the full text. |
tunnel_createPublic URL tunnels for local ports (private signed link by default; `public: true` opts out; `tunnel_revoke` invalidates the link)tunnel_listPublic URL tunnels for local ports (private signed link by default; `public: true` opts out; `tunnel_revoke` invalidates the link)tunnel_revokePublic URL tunnels for local ports (private signed link by default; `public: true` opts out; `tunnel_revoke` invalidates the link)tunnel_statusPublic URL tunnels for local ports (private signed link by default; `public: true` opts out; `tunnel_revoke` invalidates the link)tunnel_stopPublic URL tunnels for local ports (private signed link by default; `public: true` opts out; `tunnel_revoke` invalidates the link)workflow_cancelRun WORKFLOW.md and stage-barrier workflowsworkflow_run_fileRun WORKFLOW.md and stage-barrier workflowsworkflow_startRun WORKFLOW.md and stage-barrier workflowsworkflow_statusRun WORKFLOW.md and stage-barrier workflowsworkspace_brain_ingestPer-workspace transcript recall (BM25)| Parameter | Type | Description |
|---|---|---|
| workspace | string | Workspace slug. Omit to use the calling session's workspace. |
workspace_brain_queryPer-workspace transcript recall (BM25)| Parameter | Type | Description |
|---|---|---|
| query * | string | Natural-language / keyword query. |
| topK | number | Max hits to return. Default 10. |
| workspace | string | Workspace slug whose brain to query. Omit to use the calling session's workspace. |
workspace_brain_statusPer-workspace transcript recall (BM25)| Parameter | Type | Description |
|---|---|---|
| workspace | string | Workspace slug. Omit to use the calling session's workspace. |
worktree_gcPlan/apply garbage collection of linked git worktreeswrite_changesetWrite a .changeset/<slug>.md file and stage it. Replaces any existing branch changeset. Idempotent per PR.| Parameter | Type | Description |
|---|---|---|
| packages * | array | |
| summary * | string | Imperative-mood one-liner (≤72 chars) for the CHANGELOG |
write_fileOverwrite a file with the COMPLETE new content (not a diff). Use only to CREATE a new file or fully rewrite a SMALL one. For edits to an existing file prefer edit_file — write_file re-emits the whole file and will silently drop anything you did not include. A write that shrinks an existing file by more than 40% is refused unless allowShrink:true.| Parameter | Type | Description |
|---|---|---|
| allowShrink | boolean | Permit a >40% shrink of an existing file (only when the review explicitly asked to remove content). Default false. |
| content * | string | Complete new file content |
| path * | string | File path relative to repo root |
Security checks
From the agentproto/ts monorepo, not this package alone.
6 checks have not been run yet.