The MCP tools the daemon serves
The daemon runs a small MCP server and wires it into every session it spawns, so an agent can report what it is doing, publish something for you to look at, work a board and — when it has been granted it — drive other sessions. This page is generated from the definitions the daemon serves rather than written beside them, so what is below is what an agent is told.
The sets
Section titled “The sets”| Set | Served to | Tools |
|---|---|---|
| Reporting, messages, forwards and plans | Every session. | 17 |
| Connections | Every session. | 11 |
| Panes | Every session. | 12 |
| Managed browser | Every session. | 21 |
| Reviews | Every session. | 4 |
| Work items | Sessions granted the items API. | 7 |
| Supervising other sessions | Sessions granted the supervisor API. | 16 |
In total 88 tools. A session granted neither extra API sees 65 of them.
Reporting, messages, forwards and plans
Section titled “Reporting, messages, forwards and plans”What a session says about itself, what it publishes, and the planning workspace it can keep. These are the tools the dashboard is built out of: a row’s headline, the chips on it and the question a blocked session is waiting on all arrive through one of these.
Served to: Every session. report, flag_blocked, notify_user, reply_message, publish_port, publish_dir, list_dirs, unpublish_dir, unpublish_port, upsert_plan, sync_plan, present_plan_decision, present_plan_decision_batch, resolve_plan_decision, post_plan_message, get_plan and list_plans.
report
Section titled “report”Update this session’s live status on the dashboard a human is watching. Call it whenever things meaningfully change — you start a step, finish one, learn something, hit a blocker. goal is REQUIRED: it names what the session is about and is its name in the list: a short noun phrase, e.g. “Moving auth to JWTs”. Goal may remain the same across turns, but should be constantly updated to reflect the current goal. headline is REQUIRED and is the current step, or the outcome when the turn ends: one terse present-tense line (<80 chars), e.g. “Swapping cookie checks — 3/5 files”. Never put the step in the goal or the goal in the headline. Keep headlines plain text (&, not &). Everything else is optional and only changes what you send: summary (a few sentences for the detail view), note (a timestamped timeline entry), glance (the 1–3 most important chips on the row — replace-all, most important first, extremely terse; max 3), context (fuller key/value facts for the detail panel — upserts by key, e.g. branch, preview_url, tests), and clear (context keys to drop when stale). Keep glance and context small, current, and high-signal. Treat 20 context fields as a ceiling, not a target, and use clear to drop stale keys. Prefer well-known keys (status, tests, preview_url). git is its own structured field — report the branch, worktree, and anything else you know there rather than spending a glance chip or a context key on it, and resend it whenever you check out or move. This creates no files or output — it only updates the dashboard.
| Argument | Type | Required | What it is |
|---|---|---|---|
goal |
string |
yes | REQUIRED. What the session is about, a short noun phrase that names it in the list (e.g. ‘Optimizing femtocell software’). Goal may remain the same across turns, but should be constantly updated to reflect the current goal. |
headline |
string |
yes | REQUIRED. The current step, or the outcome when the turn ends: one terse present-tense plain-text line (<80 chars); use ‘&’, not ‘&’ |
summary |
string |
no | A few sentences for the detail view |
note |
string |
no | A timestamped timeline entry, e.g. ‘tests passing’ |
glance |
array |
no | The 1–3 highest-signal current chips on the row (replace-all, max 3) |
context |
array |
no | Small set of current, high-signal detail facts, upserted by key (20 is a ceiling, not a target) |
clear |
array |
no | Stale context keys to remove |
git |
object |
no | Where this session sits in git. Send what you know; an omitted field keeps its stored value, so a branch change needs only branch. Resend after any checkout, worktree move, or commit. |
flag_blocked
Section titled “flag_blocked”Signal that you are blocked waiting on the user. Call this the moment you need a decision, clarification, or permission to continue.
| Argument | Type | Required | What it is |
|---|---|---|---|
question |
string |
yes | What you need from the user |
notify_user
Section titled “notify_user”Notify the user: a card in the dashboard they are watching, or a desktop or phone notification when they are away. Use it only when the user asked you to tell them about something (“let me know when the deploy finishes”), never for routine progress, status, or a question: report and flag_blocked cover those. One per session every 10 seconds, and a faster call is refused with nothing sent. It does not change your state or end your turn.
| Argument | Type | Required | What it is |
|---|---|---|---|
title |
string |
yes | What happened, in a few words (at most 80 characters), e.g. ‘Deploy to staging finished’ |
body |
string |
no | Optional detail the user needs, at most 300 characters |
link |
string |
no | Optional thing to open: the URL or slug of a directory or port this session published, or a board item reference like pm:item/<bucket-id>/<item-number>. Any other link is refused. |
reply_message
Section titled “reply_message”Answer a message that asked you for a reply. The message carries the message_id and reply_token to pass back, and the capability works exactly once, so put your whole answer in one call.
| Argument | Type | Required | What it is |
|---|---|---|---|
message_id |
integer |
yes | From the message you are answering |
reply_token |
string |
yes | The single-use token that came with it |
body |
string |
yes | Your answer |
publish_port
Section titled “publish_port”You started a server (dev server, API, preview) the user may want to open. localhost URLs are unreachable for the user — call this with the local port and a slug naming it, and give the user the returned URL instead. Never show the user a localhost URL. The slug names the forward, and where the controller serves forwards under a share domain it becomes the hostname: slug ‘docs-preview’ is served at https://docs-preview.<domain>/. Choose one that says what the server is. Idempotent: republishing a port with the same slug returns its existing URL. Republishing it under a different slug is refused, because the first URL is already in the user’s hands — close the forward and publish again to rename it. A slug another forward already holds is refused too, and the error names it. Published ports survive restarts of this session, and a session that resumes is told which forwards it published: restart each server on the port named there and the same public URL works again, without publishing it a second time. If this fails because the controller has no public URL configured, that is an operator setting, not something retrying fixes — tell the user what the error says and move on. The returned URL requires the user to be signed in to the dashboard. Signed-in visitors return automatically through the dashboard handoff. Signed-out visitors log in and then return to the forward. A login prompt is NOT a failure — do not republish or retry when you see one. Show the URL exactly as returned; do not reconstruct, shorten, or strip query parameters from it. The URL is not a shareable public link — it is tied to the user’s dashboard session. HTTP previews are mounted under /forwards/{id}/ and that prefix is stripped upstream. Use relative URLs for assets, navigation, forms, fetch and WebSockets, or configure the app base path to the returned URL path. Root-relative /assets or /api URLs and parent paths that escape the mount will not work. Configure HMR under the same prefix. Serve loopback HTTP; public HTTPS is handled by the normal controller entry point.
| Argument | Type | Required | What it is |
|---|---|---|---|
port |
integer |
yes | The local port your server listens on |
slug |
string |
yes | Names this forward, and is the hostname under a share domain. A DNS label: 3 to 40 characters of lowercase a-z, 0-9 and hyphen, starting and ending alphanumeric, with no consecutive hyphens. Uppercase is rejected rather than lowercased. ‘www’, ‘api’, ‘app’, ‘admin’, ‘share’, ‘pm’ and ‘mail’ are reserved, as is the letter f followed by digits. Must be unique across every live forward on this controller. Example: ‘docs-preview’. |
label |
string |
no | Optional longer name shown in the dashboard, e.g. ‘vite dev server’. Defaults to the slug. |
scheme |
string |
no | Target protocol, default http. HTTP/ws use the normal public URL. Raw TCP retains a separate listener. Serve loopback HTTP for HTTPS public URLs. |
publish_dir
Section titled “publish_dir”Share a directory of files with the user — a report, screenshots, a built site, anything you have written to disk. Give the path and a slug: the host running this session serves the directory over HTTP and returns a URL, so you never start a server of your own, never pick a port, and never restart anything. The share stays up while the session does, including across restarts of this session and of the host, and the URL keeps working throughout. Prefer this over publish_port for anything that is just files. If the directory holds an index.html it is served at the URL root, otherwise the URL lists the files. The directory stays live: files you write afterwards appear without republishing. The path must be inside the session working directory. Dot-files and anything reached through a symlink are never served, a file whose name or first bytes read as key material is refused so a secret is not published by accident, and a directory that is itself a git repository root is refused — point at the subdirectory holding the artifacts instead. Show the user the returned URL exactly as given; it requires them to be signed in to the dashboard, and a login prompt is normal rather than a failure. Close it with unpublish_dir, which never touches the files.
| Argument | Type | Required | What it is |
|---|---|---|---|
path |
string |
yes | The directory to share, relative to the session working directory, or an absolute path inside it |
slug |
string |
yes | Names this share, and is the hostname under a share domain. A DNS label: 3 to 40 characters of lowercase a-z, 0-9 and hyphen, starting and ending alphanumeric, with no consecutive hyphens. ‘www’, ‘api’, ‘app’, ‘admin’, ‘share’, ‘pm’ and ‘mail’ are reserved, as is the letter f followed by digits. Must be unique across every live forward and share on this controller. Example: ‘render-report’. |
label |
string |
no | Optional longer name shown in the dashboard. Defaults to the slug. |
list_dirs
Section titled “list_dirs”List the directories this session publishes, with each one’s slug, path and public URL.
Takes no arguments.
unpublish_dir
Section titled “unpublish_dir”Stop sharing a published directory. The URL stops working and the dashboard entry disappears. The files themselves are never touched.
| Argument | Type | Required | What it is |
|---|---|---|---|
slug |
string |
yes | The slug the directory was published under |
unpublish_port
Section titled “unpublish_port”Close a previously published port when its server is gone for good. The public URL stops working and the dashboard entry disappears.
| Argument | Type | Required | What it is |
|---|---|---|---|
port |
integer |
yes | The local port to unpublish |
upsert_plan
Section titled “upsert_plan”Create or update this session’s first-class planning workspace. Write the canonical Markdown to a durable file in the repository or project directory early, keep it current, and pass its path here. Omit plan to create; otherwise only supplied fields change.
| Argument | Type | Required | What it is |
|---|---|---|---|
plan |
integer |
no | Existing plan id; omit to create |
name |
string |
no | |
summary |
string |
no | |
markdown_path |
string |
no | Durable Markdown path inside this session’s working directory |
state |
string |
no | |
linked_items |
array |
no | Bucket-local board item numbers; replaces links when supplied |
sync_plan
Section titled “sync_plan”Read the durable Markdown file through this session’s local or remote worker, store a new current snapshot, and refresh the planning UI. Call after materially changing the plan document.
| Argument | Type | Required | What it is |
|---|---|---|---|
plan |
integer |
yes | |
markdown_path |
string |
no |
present_plan_decision
Section titled “present_plan_decision”Create or revise the one decision the user should focus on now. This makes the planning workspace the session’s NeedsInput affordance. Option details are flexible Markdown; keep the option list labels compact. After calling this tool successfully, end your turn immediately and wait for the user’s response. When the response arrives, resolve it and present the next decision before starting deeper work.
| Argument | Type | Required | What it is |
|---|---|---|---|
plan |
integer |
yes | |
key |
string |
yes | |
title |
string |
yes | |
prompt_markdown |
string |
no | |
detail_markdown |
string |
no | |
mode |
string |
yes | |
allow_custom |
boolean |
no | |
require_selection |
boolean |
no | When false the user may submit with no selection; default true |
recommended_key |
string |
no | Optional key of the recommended option (for single-mode decisions) |
options |
array |
no |
present_plan_decision_batch
Section titled “present_plan_decision_batch”Present 2 to 8 independent decisions that the user can answer in one pass and submit atomically. Use a stable batch key and only group questions whose answers do not depend on one another. After calling this tool successfully, end your turn immediately. When the batch response arrives, resolve every answer and present the next decision or independent batch before starting deeper work.
| Argument | Type | Required | What it is |
|---|---|---|---|
plan |
integer |
yes | |
batch_key |
string |
yes | |
decisions |
array |
yes |
resolve_plan_decision
Section titled “resolve_plan_decision”Resolve the named decision after processing the user’s response. The response remains in the plan history; present another decision to advance the center pane automatically.
| Argument | Type | Required | What it is |
|---|---|---|---|
plan |
integer |
yes | |
key |
string |
yes | |
resolution_markdown |
string |
no |
post_plan_message
Section titled “post_plan_message”Post an agent message to the plan-level or active-decision dialogue without changing the canonical Markdown.
| Argument | Type | Required | What it is |
|---|---|---|---|
plan |
integer |
yes | |
decision |
integer |
no | |
body |
string |
yes |
get_plan
Section titled “get_plan”Read one plan with its current Markdown snapshot, decisions, responses, and dialogue.
| Argument | Type | Required | What it is |
|---|---|---|---|
plan |
integer |
yes |
list_plans
Section titled “list_plans”List plans in this session’s project. Archived plans are omitted unless requested.
| Argument | Type | Required | What it is |
|---|---|---|---|
include_archived |
boolean |
no |
Connections
Section titled “Connections”A project’s connections to MCP servers and REST APIs: discovering them, seeding one for you to finish, proposing the policy that says which tools run and which wait for your approval, and calling a tool through the controller with credentials the agent never holds.
Served to: Every session. list_connections, get_connection, list_connection_tools, describe_connection_tool, seed_connection, update_connection_draft, propose_connection_policy, propose_connection_update, call_connection_tool, get_connection_call and list_connection_calls.
list_connections
Section titled “list_connections”List accessible MCP and REST connections. Workers see their project. Supervisors see projects in their bucket.
Takes no arguments.
get_connection
Section titled “get_connection”Read one accessible connection’s setup metadata and policy, without credentials.
| Argument | Type | Required | What it is |
|---|---|---|---|
connection_id |
yes | ||
include_schema |
boolean |
no |
list_connection_tools
Section titled “list_connection_tools”Filter and page compact cached tool descriptions and effective policies. Use describe_connection_tool for a single input schema.
| Argument | Type | Required | What it is |
|---|---|---|---|
connection_id |
yes | ||
query |
string |
no | |
offset |
integer |
no | |
limit |
integer |
no |
describe_connection_tool
Section titled “describe_connection_tool”Describe one connection tool, input schema, and effective policy.
| Argument | Type | Required | What it is |
|---|---|---|---|
connection_id |
yes | ||
tool |
string |
yes |
seed_connection
Section titled “seed_connection”Prepare an inactive MCP or OpenAPI connection for the user to finish in the native session setup panel. Supply metadata and schemas only. Never supply credentials. REST requires its OpenAPI document as schema_path or schema_url, never inline. Save the document to a file in your working directory and pass schema_path. Use schema_url only for a document that is publicly reachable without authentication: the controller fetches it with no credentials, so a Puppet Master share, forward or dashboard URL, which requires a login, cannot be used. The user tests and activates the connection.
| Argument | Type | Required | What it is |
|---|---|---|---|
name |
string |
yes | |
project_id |
integer |
no | |
kind |
string |
yes | |
endpoint |
string |
yes | |
schema_path |
string |
no | Path to an OpenAPI 3 JSON document inside your session working directory, absolute or relative to it. The worker running your session reads it. Traversal and symlinks are rejected. Maximum 4 MiB. |
schema_url |
string |
no | URL of an OpenAPI 3 JSON document. The controller fetches it with no credentials, so it must be publicly reachable without authentication. A Puppet Master share, forward or dashboard URL does not work. |
oauth |
object |
no |
update_connection_draft
Section titled “update_connection_draft”Revise an inactive connection draft without credentials. Supply the current revision and full setup metadata in config, without a schema: the draft keeps its OpenAPI document unless schema_path or schema_url replaces it. Cannot modify an active connection or apply policy. User edits win on revision conflicts.
| Argument | Type | Required | What it is |
|---|---|---|---|
connection_id |
yes | ||
revision |
integer |
yes | |
config |
object |
yes | |
schema_path |
string |
no | Path to an OpenAPI 3 JSON document inside your session working directory, absolute or relative to it. The worker running your session reads it. Traversal and symlinks are rejected. Maximum 4 MiB. |
schema_url |
string |
no | URL of an OpenAPI 3 JSON document. The controller fetches it with no credentials, so it must be publicly reachable without authentication. A Puppet Master share, forward or dashboard URL does not work. |
propose_connection_policy
Section titled “propose_connection_policy”Propose policy changes for native user review. Never applies the proposal. Classify tools deliberately. Downstream readOnlyHint and HTTP methods are suggestions, not authority. The policy is never passed inline: write a JSON file in your working directory and pass policy_path. The file names only what changes, so a tool it leaves out keeps its classification and you do not resend the whole catalog.
| Argument | Type | Required | What it is |
|---|---|---|---|
connection_id |
yes | ||
revision |
integer |
yes | |
policy_path |
string |
yes | Path to a JSON policy file inside your session working directory, absolute or relative to it. It holds only what changes: any of read_policy, write_policy and unknown_policy (allow, approve or deny), and rules mapping a tool name to {access:read|write|unknown,policy?:allow|approve|deny}, or to null to clear that tool’s rule. Tools it does not name keep their classification. Maximum 4 MiB. |
explanation |
string |
yes |
propose_connection_update
Section titled “propose_connection_update”Propose an update to a connection, active or not, for native user review. Never applies it and never carries credentials. Supply the current revision, an explanation, and a config holding only the fields to change: name, endpoint, oauth. A new OpenAPI document goes beside config as schema_path, a file in your working directory, or as schema_url, never inline. Policy defaults and tool classifications go beside config as policy_path, a JSON file naming only what changes, never inline. Omitted fields keep their current value, and a tool the policy file leaves out keeps its classification when its definition is unchanged. A schema_url is fetched by the controller with no credentials, so it must be publicly reachable without authentication, and a Puppet Master share, forward or dashboard URL cannot be used: save the document to a file and pass schema_path instead. The user sees the changed fields, the tools added, removed and changed, and the policy changes, and applies them together. The connection stays active unless the endpoint, kind, project or OAuth settings change, which deactivates it until the user tests and activates it.
| Argument | Type | Required | What it is |
|---|---|---|---|
connection_id |
yes | ||
revision |
integer |
yes | |
config |
object |
no | |
schema_path |
string |
no | Path to an OpenAPI 3 JSON document inside your session working directory, absolute or relative to it. The worker running your session reads it. Traversal and symlinks are rejected. Maximum 4 MiB. |
schema_url |
string |
no | URL of an OpenAPI 3 JSON document. The controller fetches it with no credentials, so it must be publicly reachable without authentication. A Puppet Master share, forward or dashboard URL does not work. |
policy_path |
string |
no | Path to a JSON policy file inside your session working directory, absolute or relative to it. It holds only what changes: any of read_policy, write_policy and unknown_policy (allow, approve or deny), and rules mapping a tool name to {access:read|write|unknown,policy?:allow|approve|deny}, or to null to clear that tool’s rule. Tools it does not name keep their classification. Maximum 4 MiB. |
explanation |
string |
yes |
call_connection_tool
Section titled “call_connection_tool”Request a downstream tool call and wait up to wait_ms for it to settle, including time spent awaiting approval. A settled call returns its result. A result over 32 KiB returns a summary instead, with a preview and file, the full result’s path on the host running this session: read the parts you need from it with your own tools rather than the whole file. An unsettled call returns its durable call ID with a waiting field: wait again with get_connection_call rather than repeating the operation. Reuse request_id to recover a request without duplicate execution. Pass large arguments as arguments_path instead of arguments: a JSON file in your working directory, read once when the call is submitted, so later edits to the file cannot change it.
| Argument | Type | Required | What it is |
|---|---|---|---|
connection_id |
yes | ||
tool |
string |
yes | |
arguments |
object |
no | |
arguments_path |
string |
no | Path to a JSON object of tool arguments inside your session working directory, absolute or relative to it, in place of arguments. The worker running your session reads it. Traversal and symlinks are rejected. Maximum 4 MiB. |
request_id |
string |
yes | |
justification |
string |
no | |
wait_ms |
no |
get_connection_call
Section titled “get_connection_call”Wait up to wait_ms for a call to settle, then return its approval/execution state and result, summarized with a file path as in call_connection_tool when large. A call still unsettled carries a waiting field; once it reports stalled, a notice arrives in this session when the call settles. outcome_unknown means check upstream before retrying.
| Argument | Type | Required | What it is |
|---|---|---|---|
call_id |
string |
yes | |
wait_ms |
no |
list_connection_calls
Section titled “list_connection_calls”Recover this session’s recent calls. Supervisors can inspect calls within their bucket.
Takes no arguments.
Panes beside the agent’s terminal in the session view: a program or shell, a page from the working directory, or a dev server. The agent arranges them in a split layout the user can change too, so it reads the layout before it rearranges anything. Terminal panes need the session to run with bypass permissions.
Served to: Every session. open_terminal, open_page, get_layout, set_layout, list_panes, read_pane, wait_pane, send_to_pane, restart_pane, set_pane_title, reload_pane and close_pane.
open_terminal
Section titled “open_terminal”Open a terminal pane in the user’s session view running command (or the user’s shell when command is omitted). Use it only to show the user something: when they ask to see a program, its output or a live view, or when watching a long-running process such as a dev server or test watcher clearly helps them follow your work. Do not use it for commands you only need yourself, for background jobs, or to keep a process out of sight; run those with your own tools. The pane opens visible beside you; the user can resize, hide or stop it. Requires bypass permissions.
| Argument | Type | Required | What it is |
|---|---|---|---|
id |
string |
yes | Your name for the pane, unique in this session, used by every other pane call |
command |
string |
no | Shell command line to run; omit for a plain interactive shell |
cwd |
string |
no | Directory relative to the session working directory |
env |
object |
no | Extra environment variables |
title |
string |
yes | Short header label you choose for the user, e.g. “auth tests” or “dev server”; not the command |
open_page
Section titled “open_page”Open a page pane in a sandboxed frame beside you, to show the user a dashboard, chart, report or the app you are building. Give either dir, an HTML directory in your working directory with index.html at its root, or port, a dev server you run on this host. A dir page reloads by itself when index.html changes; for live data have it fetch a relative file such as data.json on an interval, or call reload_pane. A port page is served under the base_path this call returns: configure the dev server’s base or public path to it (for Vite, –base <base_path>) so its assets and HMR resolve. Pages run scripts but have no access to Puppet Master or the user’s login.
| Argument | Type | Required | What it is |
|---|---|---|---|
id |
string |
yes | Your name for the pane, unique in this session |
dir |
string |
no | Directory relative to the session working directory |
port |
integer |
no | Port of a dev server on this host, instead of dir |
title |
string |
yes | Short header label you choose for the user |
get_layout
Section titled “get_layout”The current pane layout of your session view: its revision, the split tree, every pane with its state, and panes the user hid (unplaced). The user can change the layout at any time; call this before set_layout.
Takes no arguments.
set_layout
Section titled “set_layout”Arrange your session view. layout is a tree: {“pane”: id, “size”: percent} leaves inside {“row”: […]} (side by side) or {“column”: […]} (stacked) splits, which may also carry a size. It must contain the “agent” pane exactly once. Pass the base_rev you read from get_layout: if the user changed anything since, the call is refused with the current layout so you can adjust and retry instead of overwriting their changes.
| Argument | Type | Required | What it is |
|---|---|---|---|
base_rev |
integer |
yes | |
layout |
object |
yes |
list_panes
Section titled “list_panes”Your panes with their kind, state (running, exited N, stopped, live), whether they are placed or hidden by the user, and whether the user enabled typing in them.
Takes no arguments.
read_pane
Section titled “read_pane”The recent output of a terminal pane as plain text.
| Argument | Type | Required | What it is |
|---|---|---|---|
id |
string |
yes | The pane’s id |
lines |
integer |
no | How many trailing lines, default 80 |
raw |
boolean |
no | Keep escape sequences |
wait_pane
Section titled “wait_pane”Wait until a terminal pane’s program exits, its output matches a regex, or it goes quiet, without polling. Returns what happened and the recent output.
| Argument | Type | Required | What it is |
|---|---|---|---|
id |
string |
yes | The pane’s id |
until |
string |
yes | |
pattern |
string |
no | Regex for until=match, tested against output that arrives after the call |
quiet_ms |
integer |
no | For until=quiet, default 2000 |
timeout_ms |
integer |
no | At most 25000 |
send_to_pane
Section titled “send_to_pane”Type into a terminal pane: text, then Enter when submit is true, and named keys such as ctrl-c, ctrl-d, enter, esc, tab, up, down, left, right or single characters. Requires bypass permissions.
| Argument | Type | Required | What it is |
|---|---|---|---|
id |
string |
yes | The pane’s id |
text |
string |
no | |
submit |
boolean |
no | |
keys |
array |
no |
restart_pane
Section titled “restart_pane”Run a terminal pane’s command again from the start in the same pane. Requires bypass permissions.
| Argument | Type | Required | What it is |
|---|---|---|---|
id |
string |
yes | The pane’s id |
set_pane_title
Section titled “set_pane_title”Rename one of your panes, for example to reflect what it now shows.
| Argument | Type | Required | What it is |
|---|---|---|---|
id |
string |
yes | The pane’s id |
title |
string |
yes |
reload_pane
Section titled “reload_pane”Reload a page pane.
| Argument | Type | Required | What it is |
|---|---|---|---|
id |
string |
yes | The pane’s id |
close_pane
Section titled “close_pane”Remove one of your panes. A terminal pane’s program is stopped.
| Argument | Type | Required | What it is |
|---|---|---|---|
id |
string |
yes | The pane’s id |
Managed browser
Section titled “Managed browser”A Chromium browser the controller runs for the session, installed once per host with pm browser install. The agent drives it with these tools and can show it live in a read-only pane. A browser closes after fifteen minutes without browser activity and when the session ends.
Served to: Every session. browser_resize, browser_console_messages, browser_handle_dialog, browser_evaluate, browser_find, browser_fill_form, browser_press_key, browser_type, browser_navigate, browser_navigate_back, browser_network_requests, browser_take_screenshot, browser_snapshot, browser_click, browser_drag, browser_hover, browser_select_option, browser_tabs, browser_wait_for, browser_contexts and show_browser.
browser_resize
Section titled “browser_resize”Resize the browser window
| Argument | Type | Required | What it is |
|---|---|---|---|
width |
number |
yes | Width of the browser window |
height |
number |
yes | Height of the browser window |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_console_messages
Section titled “browser_console_messages”Returns all console messages
| Argument | Type | Required | What it is |
|---|---|---|---|
level |
string |
yes | Level of the console messages to return. Each level includes the messages of more severe levels. Defaults to “info”. |
all |
boolean |
no | Return all console messages since the beginning of the session, not just since the last navigation. Defaults to false. |
filename |
string |
no | File name to save the console messages to. Relative file names are resolved against the workspace root. If not provided, messages are returned as text. |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_handle_dialog
Section titled “browser_handle_dialog”Handle a dialog
| Argument | Type | Required | What it is |
|---|---|---|---|
accept |
boolean |
yes | Whether to accept the dialog. |
promptText |
string |
no | The text of the prompt in case of a prompt dialog. |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_evaluate
Section titled “browser_evaluate”Evaluate JavaScript expression on page or element
| Argument | Type | Required | What it is |
|---|---|---|---|
element |
string |
no | Human-readable element description used to obtain permission to interact with the element |
target |
string |
no | Exact target element reference from the page snapshot, or a unique element selector |
function |
string |
yes | () => { /* code / } or (element) => { / code */ } when element is provided |
filename |
string |
no | File name to save the result to. Relative file names are resolved against the workspace root. If not provided, result is returned as text. |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_find
Section titled “browser_find”Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), each shown under its path from the root of the tree, which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref.
| Argument | Type | Required | What it is |
|---|---|---|---|
text |
string |
no | Plain text to search for in the page snapshot (case-insensitive substring match). Provide either text or regex, not both. |
regex |
string |
no | Regular expression to search for in the page snapshot. Matching is case-sensitive by default; wrap the pattern in slashes to add flags, e.g. “/error/i” for case-insensitive. Provide either text or regex, not both. |
maxResults |
number |
no | Maximum number of matching items to return. Defaults to returning all matches. |
filename |
string |
no | Save results to a file instead of returning them in the response. Relative file names are resolved against the workspace root. |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_fill_form
Section titled “browser_fill_form”Fill multiple form fields
| Argument | Type | Required | What it is |
|---|---|---|---|
fields |
array |
yes | Fields to fill in |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_press_key
Section titled “browser_press_key”Press a key on the keyboard
| Argument | Type | Required | What it is |
|---|---|---|---|
key |
string |
yes | Name of the key to press or a character to generate, such as ArrowLeft or a |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_type
Section titled “browser_type”Type text into editable element
| Argument | Type | Required | What it is |
|---|---|---|---|
element |
string |
no | Human-readable element description used to obtain permission to interact with the element |
target |
string |
yes | Exact target element reference from the page snapshot, or a unique element selector |
text |
string |
yes | Text to type into the element |
submit |
boolean |
no | Whether to submit entered text (press Enter after) |
slowly |
boolean |
no | Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once. |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_navigate
Section titled “browser_navigate”Navigate to a URL
| Argument | Type | Required | What it is |
|---|---|---|---|
url |
string |
yes | The URL to navigate to |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_navigate_back
Section titled “browser_navigate_back”Go back to the previous page in the history
| Argument | Type | Required | What it is |
|---|---|---|---|
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_network_requests
Section titled “browser_network_requests”Returns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.
| Argument | Type | Required | What it is |
|---|---|---|---|
static |
boolean |
yes | Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false. |
filter |
string |
no | Only return requests whose URL matches this regexp (e.g. “/api/.*user”). |
all |
boolean |
no | Return all network requests since the beginning of the session, not just since the last navigation. Defaults to false. |
filename |
string |
no | File name to save the network requests to. Relative file names are resolved against the workspace root. If not provided, requests are returned as text. |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_take_screenshot
Section titled “browser_take_screenshot”Take a screenshot of the current page. Use browser_snapshot for actions by default. With the vision capability enabled, use screenshot coordinates with the coordinate-based mouse tools for elements not exposed in the accessibility snapshot.
| Argument | Type | Required | What it is |
|---|---|---|---|
element |
string |
no | Human-readable element description used to obtain permission to interact with the element |
target |
string |
no | Exact target element reference from the page snapshot, or a unique element selector |
type |
string |
no | Image format for the screenshot. If unset, inferred from the filename extension, otherwise png. |
filename |
string |
no | File name to save the screenshot to. Relative file names are resolved against the workspace root. If not specified, the screenshot is saved into the output directory as page-{timestamp}.{png|jpeg|webp}. |
fullPage |
boolean |
no | When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots. |
scale |
string |
yes | Image resolution scale. “css” produces a screenshot sized in CSS pixels (smaller, consistent across devices). “device” produces a high-resolution screenshot using device pixels (larger, accounts for the device pixel ratio). Default is css. |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_snapshot
Section titled “browser_snapshot”Capture accessibility snapshot of the current page, this is better than screenshot
| Argument | Type | Required | What it is |
|---|---|---|---|
target |
string |
no | Exact target element reference from the page snapshot, or a unique element selector |
filename |
string |
no | Save snapshot to a file instead of returning it in the response. Relative file names are resolved against the workspace root. |
depth |
number |
no | Limit the depth of the snapshot tree |
boxes |
boolean |
no | Include each element’s bounding box as [box=x,y,width,height] in the snapshot. Coordinates are viewport-relative, in CSS pixels (Element.getBoundingClientRect) |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_click
Section titled “browser_click”Perform click on a web page
| Argument | Type | Required | What it is |
|---|---|---|---|
element |
string |
no | Human-readable element description used to obtain permission to interact with the element |
target |
string |
yes | Exact target element reference from the page snapshot, or a unique element selector |
doubleClick |
boolean |
no | Whether to perform a double click instead of a single click |
button |
string |
no | Button to click, defaults to left |
modifiers |
array |
no | Modifier keys to press |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_drag
Section titled “browser_drag”Perform drag and drop between two elements
| Argument | Type | Required | What it is |
|---|---|---|---|
startElement |
string |
no | Human-readable source element description used to obtain the permission to interact with the element |
startTarget |
string |
yes | Exact target element reference from the page snapshot, or a unique element selector |
endElement |
string |
no | Human-readable target element description used to obtain the permission to interact with the element |
endTarget |
string |
yes | Exact target element reference from the page snapshot, or a unique element selector |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_hover
Section titled “browser_hover”Hover over element on page
| Argument | Type | Required | What it is |
|---|---|---|---|
element |
string |
no | Human-readable element description used to obtain permission to interact with the element |
target |
string |
yes | Exact target element reference from the page snapshot, or a unique element selector |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_select_option
Section titled “browser_select_option”Select an option in a dropdown
| Argument | Type | Required | What it is |
|---|---|---|---|
element |
string |
no | Human-readable element description used to obtain permission to interact with the element |
target |
string |
yes | Exact target element reference from the page snapshot, or a unique element selector |
values |
array |
yes | Array of values to select in the dropdown. This can be a single value or multiple values. |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_tabs
Section titled “browser_tabs”List, create, close, or select a browser tab.
| Argument | Type | Required | What it is |
|---|---|---|---|
action |
string |
yes | Operation to perform |
index |
number |
no | Tab index, used for close/select. If omitted for close, current tab is closed. |
url |
string |
no | URL to navigate to in the new tab, used for new. |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_wait_for
Section titled “browser_wait_for”Wait for text to appear or disappear or a specified time to pass. When both text and textGone are provided, waits for the first one to happen
| Argument | Type | Required | What it is |
|---|---|---|---|
time |
number |
no | The time to wait in seconds, at most 30. When combined with text or textGone, serves as a timeout for them instead of the default action timeout |
text |
string |
no | The text to wait for |
textGone |
string |
no | The text to wait for to disappear |
browser_context |
string |
no | Existing managed browser context. Defaults to default. Reuse it unless separate cookies or logins are needed. |
browser_contexts
Section titled “browser_contexts”List, create, or close isolated browser contexts in your session. Reuse default unless separate cookies or a different logged-in user are required. Contexts share one Chromium process, have separate cookies and storage, and are temporary. At most four including default. Creating another requires a reason. Closing default resets its state on next use.
| Argument | Type | Required | What it is |
|---|---|---|---|
action |
string |
yes | |
browser_context |
string |
no | Context name, default is default. |
reason |
string |
no | Required for create. Why separate cookies or logins are needed. |
show_browser
Section titled “show_browser”Show your managed browser live in a read-only native pane beside you when the user asks to watch browsing or testing. Reuses your browser and follows its active tab. Hide or close the pane with normal pane tools. Hiding stops streaming, not automation. Browser tools use a fixed 1280 by 800 viewport by default. Use browser_resize to test other layouts. Browsers expire after fifteen minutes without tool activity and logins are temporary.
| Argument | Type | Required | What it is |
|---|---|---|---|
browser_context |
string |
no | Existing context to show, default is default. |
title |
string |
no | Short pane title. |
Reviews
Section titled “Reviews”The review loop, which is event-driven on purpose: the agent takes the next comment when it is ready rather than holding a terminal open for the whole review, so the session stays usable and the review outlives it.
Served to: Every session. open_review, next_review_event, post_review_reply and review_status.
open_review
Section titled “open_review”Start a PR-style review of your work, or attach to the one already covering it, and give the user the returned URL, then go straight into next_review_event and stay there until the review is finished. State the context outright: Puppet Master does not guess it, because your session’s launch directory is fixed at spawn and you may have moved or created a worktree since. Pass worktree (the absolute path of the tree you want read) and a base that is already a resolved SHA — run git rev-parse yourself; a branch name is rejected because a review must keep meaning what it meant after the ref moves. The review reads your working tree, so the edits you make answering a comment show up in it. files names an exact scope when you want one. To review a document that is not in a repository at all, set source_file instead and leave base and worktree empty. The reviewer comments in the browser; you take the comments with next_review_event. A review the user finished stays finished: do not reopen it because of a review notice, only when the user asks, and then pass reopen.
| Argument | Type | Required | What it is |
|---|---|---|---|
worktree |
string |
no | Absolute path of the working tree to read. Required for a range review; with source_file it defaults to the directory holding that file. |
base |
string |
no | Resolved base SHA, from git rev-parse. A ref name is refused. |
pathspec |
array |
no | Limit the review to these paths, for splitting a large branch into readable batches. Each filter is a separate review. |
files |
array |
no | Exactly these paths are the scope; nothing is enumerated. Use it to include a file git would not list, or to leave generated noise out. |
source_file |
string |
no | Absolute path of a document to review against an empty baseline, with no repository involved. Leave base and worktree empty when using this. |
label |
string |
no | What to call this review wherever a person sees it, including its tab. Name it for the work, not the range — ‘session git field’ reads better than ‘69db9c7..WORKING’ when several are open at once. Defaults to the SHAs. |
reset |
boolean |
no | Discard existing threads and history for this target before opening. |
reopen |
boolean |
no | Reopen this target’s review even though the user finished it. Set it only when the user asked for the review again. Without it, a finished review is left finished and the call is refused. |
next_review_event
Section titled “next_review_event”Wait for the reviewer’s next comment. This BLOCKS until one arrives, so call it and stay in it — do not go do something else while a review is open. Returns the thread with its current line and an excerpt of today’s code, which you should trust over the line the comment was originally written against. Address it by editing the file in place, call post_review_reply, then call this again. Keep looping until it tells you the review is finished. If it returns saying nothing arrived in time, call it again immediately: that is a client timeout, not the end of the review. Threads on one file are handed out one at a time, so you can work on separate files concurrently without conflicting.
| Argument | Type | Required | What it is |
|---|---|---|---|
wait_seconds |
integer |
no | How long to hold the call open waiting for a comment. Defaults to 20. Clients commonly time out a request at 30s, so raise this only if you know yours allows longer — a hold that outlives the client comes back as a transport error, not as an answer. |
post_review_reply
Section titled “post_review_reply”Reply to one review thread. Keep it short and direct — this is a conversation, not documentation. Set addressed false when you decided not to make the change, and say why in the body. Calling this captures the tree your edits produced, so make the edits first.
| Argument | Type | Required | What it is |
|---|---|---|---|
thread_id |
integer |
yes | From next_review_event |
body |
string |
yes | What you did, or why you did not |
addressed |
boolean |
no | False when you declined the change; defaults to true |
review_status
Section titled “review_status”Open, answering, and resolved thread counts for this session’s reviews, so you can tell whether the reviewer is waiting on you.
Takes no arguments.
Work items
Section titled “Work items”A bucket’s board, as the agent sees it. Granted per session and revocable while it runs with pm apis --items.
Served to: Sessions granted the items API. upsert_items, list_items, get_items, attach_item_file, list_item_attachments, get_item_attachment and post_briefing.
upsert_items
Section titled “upsert_items”Create or update work items on this bucket’s board — the user’s cross-channel work list on the dashboard. Use a stable external_key per item so re-sweeps are idempotent: upserting an existing key updates only the fields you send. Send status only when you know it changed. The server enforces the user’s decisions: an item that is done or dropped stays that way unless you include a note saying why it reopened, and snoozes are untouchable — do not re-file handled work. Order blockers before the items they block so blocked_by references resolve. Returns each item’s id; reference items in text as pm:item/<bucket-id>/<id> and sessions as pm:session/<id>.
| Argument | Type | Required | What it is |
|---|---|---|---|
items |
array |
yes |
list_items
Section titled “list_items”List this bucket’s work items as summary rows. Call this FIRST in a sweep and reconcile against what the board already holds instead of trusting memory — that is what makes re-sweeps safe. By default done/dropped items are excluded (set include_done to audit them before filing something you suspect was handled) and snoozed items are excluded (the user parked those; do not re-argue them). Each row carries id, ref, title, status, priority, source, timestamps, blocked_by edges, and body_chars, but not the body or question text: read those with get_items for the few rows you need. The response carries matching_total and next_offset, so narrow with search, project, or updated_since rather than paging through a large board.
| Argument | Type | Required | What it is |
|---|---|---|---|
statuses |
array |
no | |
search |
string |
no | Case-insensitive title, body, question, external key, source detail, or URL search |
project |
no | Project name or id to narrow to | |
priorities |
array |
no | |
sources |
array |
no | |
updated_since |
no | Only items updated at/after this, as RFC 3339/ISO 8601 with Z or a UTC offset, ‘YYYY-MM-DD’, or unix milliseconds | |
include_done |
boolean |
no | Include done and dropped items |
include_snoozed |
boolean |
no | |
limit |
integer |
no | |
offset |
integer |
no |
get_items
Section titled “get_items”Read full items from this bucket, including body and question text, by bucket-local id, canonical pm:item/<bucket>/<id>, or external_key. Use it after list_items for the rows you actually need rather than listing with a large limit. Every reference must resolve inside this bucket or the call fails naming the offender.
| Argument | Type | Required | What it is |
|---|---|---|---|
items |
array |
yes |
attach_item_file
Section titled “attach_item_file”Attach a bounded file from this session’s worker filesystem to an item in this bucket. Paths resolve only inside the session working directory; traversal and symlinks are rejected. Remote-worker files are read by that worker and transferred through the bounded worker protocol. Maximum 10 MiB per file and 50 MiB per item.
| Argument | Type | Required | What it is |
|---|---|---|---|
item |
yes | Bucket-local item id, canonical pm:item/<bucket>/<id>, or external_key | |
path |
string |
yes | Absolute path inside the session cwd, or a path relative to it |
filename |
string |
no | Optional safe display filename |
media_type |
string |
no | Optional MIME display hint; active or invalid types fall back to application/octet-stream |
list_item_attachments
Section titled “list_item_attachments”List attachment metadata for one item in this bucket. File bytes are never embedded in normal item snapshots or this metadata response.
| Argument | Type | Required | What it is |
|---|---|---|---|
item |
yes | Bucket-local item id, canonical pm:item/<bucket>/<id>, or external_key |
get_item_attachment
Section titled “get_item_attachment”Retrieve one attachment as a bounded MCP blob resource. Agent retrieval is limited to 1 MiB to keep tool responses bounded; larger files remain available through the authenticated Board download endpoint.
| Argument | Type | Required | What it is |
|---|---|---|---|
item |
yes | Bucket-local item id, canonical pm:item/<bucket>/<id>, or external_key | |
attachment_id |
integer |
yes |
post_briefing
Section titled “post_briefing”Post this bucket’s briefing: one markdown page the user reads instead of touring their inboxes. Lead with what needs the user right now, then what is in flight, what is blocked and on what, and what completed since the last briefing. Link every item and session you mention with normal markdown links using pm:item/<bucket-id>/<id>, pm:session/<id>, pm:project/<id> — the dashboard resolves them; never use localhost URLs. Becomes the latest briefing shown on the board (history is kept).
| Argument | Type | Required | What it is |
|---|---|---|---|
markdown |
string |
yes |
Supervising other sessions
Section titled “Supervising other sessions”Spawning sessions, watching them, typing into them and ending them, plus the instruction overlays their spawns will read. This is the set that makes one session able to drive others, and the one to think hardest about before granting.
Served to: Sessions granted the supervisor API. spawn_session, session_status, snooze_supervision, wait_sessions, read_terminal, await_reply, send_input, interrupt_session, resume_session, kill_session, list_sessions, list_instructions, get_effective_instructions, set_instructions, get_bucket_icon and set_bucket_icon.
spawn_session
Section titled “spawn_session”Spawn an agent session that works a board item. The session runs in the chosen project exactly as the user configured it: the project’s own path and permission mode always apply and cannot be chosen here. For a project configured on more than one host, the optional host argument picks which configured host runs the session; omitted, the project’s default worker resolution applies. A spawn is refused when the project cannot run on the resolved host, naming the project, the host, and the path: a path that is unset, missing, not a directory, or unreadable is reported as that rather than as the host being offline. The new session is linked to the item and a note lands on the item’s timeline. Returns the new session id; watch it with session_status and read_terminal.
| Argument | Type | Required | What it is |
|---|---|---|---|
project |
yes | Project name or id in this bucket the session runs in | |
agent |
string |
no | Optional explicit agent override; omitted uses the project’s effective default |
title |
string |
no | One terse line for the session list; defaults to the prompt’s first characters |
prompt |
string |
yes | The task prompt the agent starts with |
item |
yes | REQUIRED. Board item this session works: a bucket-local id, canonical pm:item/<bucket>/<id>, or external_key | |
host |
no | Optional worker to run on, as a worker id or name. Only workers the project allows are accepted; anything else is rejected with the valid choices. Omit to use the project’s default. |
session_status
Section titled “session_status”A session you spawned: its state, dashboard report (headline, summary, glance, context), linked items, and recent report timeline. Poll this to follow progress without reading the terminal. Also returns host, whether the controller can reach it, and project_host: whether the project can run there and, when it cannot, which configured field is wrong. Returns the bucket lifecycle cursor for a race-free follow-up wait_sessions call.
| Argument | Type | Required | What it is |
|---|---|---|---|
session |
integer |
yes | Session id returned by spawn_session |
snooze_supervision
Section titled “snooze_supervision”Delay periodic idle reminders while waiting on progressing children or a user decision, and silence this turn’s clean completion notification. Supervisor-only; accepts an active turn or needs-input state after flag_blocked. Snoozing preserves the blocked question and its alert. Defaults to 5 minutes, accepts 2-60. Child transitions still wake you immediately. A subsequent prompt-submitted hook restores completion notifications without canceling the reminder snooze. NeedsInput and Failed still notify. Prefer wait_sessions when actively supervising.
| Argument | Type | Required | What it is |
|---|---|---|---|
minutes |
integer |
no |
wait_sessions
Section titled “wait_sessions”Wait for normalized lifecycle changes in any spawned child. Pass the cursor from session_status, list_sessions, or the previous wait so a transition between status and wait is returned immediately. Omitting after_cursor returns an immediate baseline snapshot and cursor. Claude and Codex hooks produce the same states. A submitted user prompt cancels the wait promptly; waiting itself does not count as agent activity.
| Argument | Type | Required | What it is |
|---|---|---|---|
sessions |
array |
yes | One or more child session ids returned by spawn_session |
after_cursor |
integer |
no | Opaque cursor returned by a previous status/list/wait call |
timeout_ms |
integer |
no | Bounded wait in ms. Clamped so the call always returns before a client gives up on it; when it comes back empty, call again |
states |
array |
no | Optional destination-state filter; omitted or empty returns any lifecycle change |
read_terminal
Section titled “read_terminal”The tail of a spawned session’s agent terminal, as plain text with escape sequences stripped (set raw to keep them). Use it to see what the agent is actually doing or why it is stuck.
| Argument | Type | Required | What it is |
|---|---|---|---|
session |
integer |
yes | Session id returned by spawn_session |
max_bytes |
integer |
no | Tail size to return; default 16384, at most 65536 |
raw |
boolean |
no | Keep escape sequences instead of stripping them |
await_reply
Section titled “await_reply”Wait for the answer to a message you sent with reply=true. Holds briefly and returns whatever it has, so call it straight back while the reply is still outstanding. Reading never consumes the answer, and the answer also arrives in this session on its own, so a wait that times out has lost nothing.
| Argument | Type | Required | What it is |
|---|---|---|---|
message_id |
integer |
yes | From the send_input response |
wait_seconds |
integer |
no | How long to hold, default 20. Clamped so the call always returns before a client gives up on it, so call straight back while the reply is outstanding rather than asking for a longer hold |
send_input
Section titled “send_input”Send input to a spawned session’s agent terminal. Set submit=true for commands or messages: Puppet Master removes trailing CR/LF terminators, sends nonempty Codex/Claude text as one explicit paste, writes exactly one Enter after the paste has settled, then waits briefly for the session’s Working transition (re-sending the Enter once if no turn begins). Branch on input_state: ‘submitted’ means a turn began; ‘queued_behind_turn’ means the agent was mid-turn and the message is queued in its composer (watch wait_sessions); ‘submission_unconfirmed’ means no turn was observed — read the terminal, or retry with empty text and submit=true to press Enter again without duplicating the message; ‘submit_undelivered’ means the text landed but the Enter did not — retry with empty text and submit=true, never resend the text. Omitted submit defaults to false and preserves text byte-for-byte, including legacy embedded CR/LF — so text containing a newline can still submit even with submit=false; probe with text that has no CR/LF. The input is audited on the item timeline.
| Argument | Type | Required | What it is |
|---|---|---|---|
session |
integer |
yes | Session id returned by spawn_session |
text |
string |
yes | Text to type; embedded CR/LF retain their legacy behavior |
submit |
boolean |
no | Queue exactly one final Enter after normalizing trailing CR/LF; defaults to false |
reply |
boolean |
no | Ask for one answer back. The message carries a single-use capability the other session spends with reply_message, the response returns the message_id to wait on, and the answer arrives both in this session and through await_reply. Needs submit=true |
interrupt_session
Section titled “interrupt_session”Send an interrupt (Ctrl-C) to a spawned session’s agent, like pressing Escape on a runaway step. The session stays alive.
| Argument | Type | Required | What it is |
|---|---|---|---|
session |
integer |
yes | Session id returned by spawn_session |
resume_session
Section titled “resume_session”Resume an ended spawned session’s agent conversation in place. Live sessions and sessions without an available conversation transcript are refused. Audited on the item timeline. Returns the resumed session id.
| Argument | Type | Required | What it is |
|---|---|---|---|
session |
integer |
yes | Ended session id returned by spawn_session |
kill_session
Section titled “kill_session”Kill a spawned session’s agent process for good. Use interrupt first when a nudge might do; kill is for sessions that are wedged or no longer needed. Audited on the item timeline.
| Argument | Type | Required | What it is |
|---|---|---|---|
session |
integer |
yes | Session id returned by spawn_session |
list_sessions
Section titled “list_sessions”Sessions in this bucket, newest first, including ended ones — reconcile against this instead of trusting memory. Sessions you spawned carry your session id in spawned_by_session_id, and every row names the host it runs on and whether the controller can reach it.
| Argument | Type | Required | What it is |
|---|---|---|---|
limit |
integer |
no | Most recent sessions to return; default 50 |
list_instructions
Section titled “list_instructions”List editable bucket instruction layers and, when project is supplied, that project’s layers. Includes append-only revision history so durable changes can be audited and reverted. Built-in Puppet Master and role contracts are immutable and are not returned as editable layers.
| Argument | Type | Required | What it is |
|---|---|---|---|
project |
no | Optional project name or id in this bucket |
get_effective_instructions
Section titled “get_effective_instructions”Preview the deterministic instruction Markdown a new or resumed Worker or Supervisor would receive, after immutable contract, role, bucket, and optional project layers are compiled. This does not affect a running turn.
| Argument | Type | Required | What it is |
|---|---|---|---|
role |
string |
yes | |
project |
no | Optional project name or id in this bucket |
set_instructions
Section titled “set_instructions”Create or replace one persistent instruction overlay inside your bucket. Use only when the user explicitly requests a durable rule. scope is bucket or project; project scope requires a project in this bucket. target may be all, worker, or supervisor. expected_revision is 0 to create or the current revision to update; conflicts never overwrite. Changes affect new spawns and resumes, not running turns.
| Argument | Type | Required | What it is |
|---|---|---|---|
scope |
string |
yes | |
project |
no | Required for project scope: name or id in this bucket | |
role |
string |
yes | |
markdown |
string |
yes | |
expected_revision |
integer |
yes | |
note |
string |
no |
get_bucket_icon
Section titled “get_bucket_icon”Read how your bucket’s button looks in the web sidebar rail: its text, color, and the type and size of any image. The image itself is attached as an image block only when include_image is true.
| Argument | Type | Required | What it is |
|---|---|---|---|
include_image |
boolean |
no | Attach the icon image so you can see it |
set_bucket_icon
Section titled “set_bucket_icon”Set how your bucket’s button looks in the web sidebar rail. Use only when the user asks for it. Each call replaces the whole icon, and omitting every field restores the default letters. The rail shows image_path when set, otherwise text on color.
| Argument | Type | Required | What it is |
|---|---|---|---|
text |
string |
no | A few letters or one emoji, at most 32 bytes |
color |
string |
no | Button color as #rrggbb |
image_path |
string |
no | A PNG, JPEG or WebP file inside your working directory, read once. Scale it to a small square first: the file may be at most about 48 KiB. The rail rounds the corners itself, so a full-bleed square with opaque corners looks best. |