Skip to content

Tools the app gives agents

The app gives every agent it starts a set of tools of its own, alongside the runtime's tools, on every runtime (see Runtimes). This page lists them all, in the order an agent sees them. Every runtime takes them over a local http address the app serves on this computer only, with a key only that agent's session holds; the key stops working when the session ends. Copilot uses its own follow-up suggestions instead of the app's.

The last column says whether you are asked before the tool runs. Where it says the app answers, the runtime's permission question is answered by the app and you do not see it. Where it says the runtime decides, you get the same permission card as for any other tool if the runtime asks; Claude and Cursor ask, and Copilot asks before every tool call.

There's no tool for ending a turn. The app works out how each one ended: Complete, or Waiting on your answer when a question card is open or the agent's last words ask one, with the first sentence of its last message under its name (the question, when it waits on one). A turn that stopped short (cancelled, refused, out of tokens, failed) shows how it stopped instead. The conversation's name comes from the runtime, or from your first prompt when the runtime sends none. When a runtime advertises ACP's session system-prompt capability, the app sends the briefing as an appended system prompt on session creation and when it loads, resumes or forks a session. Otherwise it uses a runtime compatibility adapter where available, or puts the briefing before your words in the first prompt. This keeps the title based on your prompt whenever a separate channel is available. Every agent's briefing names the three ways a turn ends (#1801): an agent that cannot carry on without you asks, with its own question tool or ask_question, and ends its last message with a question only when it asks you one (#1916); one that is done and has something for you (a report, a document, a diagram) calls show_file on it once and ends the turn, without archiving; one that is done with nothing for you cleans up and calls archive_session with no id. The briefing also says who is who (the runtime's name, your name and pronouns from Settings, and who started a helper), what to ask you and what to decide and tell, to show a report you asked for before writing it, to use workflows, helpers and read_session, and, where they apply, move_worktree, the runtime's tools that do not work in the app and the persona's prompt (#1806). It ends with a line for each of the app's other tools that this host lists, with when to use it (#3608): notify, set_session_labels, set_session_priority, docs_search and docs_read, estimate_issue, conflict_risk_analysis, commit_trailers, and the machine tools with bring_back and move_session; the browser tools, fill_secret, generate_secret, capture_secret, pair_web_page and hand_to_person (not on a bot's machine) where the browser is offered, saying they take the browser lease themselves; drive_screen where desktop control is on; and publish_artifact and read_artifacts where the folder's project keeps artifacts for you (#5959). Claude defers MCP tools and reads a tool's description only when it looks for that tool, and a folder's AGENTS.md and skills reach only that folder, so a test fails when a tool is named nowhere in the briefing without a reason. After you edit a live page, the agent's next prompt quotes the passages you changed. finish_turn was removed; a conversation that began before then can still call it, and what it says is kept.

Tool What it does Asks the person first?
show_file Opens a file in the files pane beside the conversation, at a line. A Markdown file opens as a page that follows the agent's edits; an HTML file opens rendered, with scripts and the network off (see Look at an HTML page). The file must be inside the folders the agent was given. If you are reading another conversation, it waits until you open this one. No. The app answers.
manage_workflows Lists, reads, writes and removes this project's workflows (they live in .agents/workflows, which every folder of the project shares through Git, and hosts: picks the machines that run each; #3277), turns them off and on, and runs them. run is Run now, with three more limits: an agent cannot run a workflow that is turned off, that waits for your OK, or that runs in its triggering agent, and a run started by a workflow's agent counts towards the chain limit of three, so workflows cannot run each other in a loop. A workflow an agent writes or changes appears on the folder page straight away, waiting for your OK: it does not run until you click Approve, and you can archive it instead. A new one an agent writes also starts turned off, and its page says Off: written by an agent until you turn it on. An agent can turn any workflow off, and turn back on one an agent turned off. One you turned off, one an agent wrote, and one whose file says enabled: false for any other reason (such as a ready-made workflow) are yours to turn on: enable asks you with a Needs you card (Approve or Deny, #4538), and the app turns it on only when you approve it, as your own switch does. On a machine only agents use, where nobody answers, it is refused. Off and archived are lines in the workflow's own file (enabled: false, archived: true), so turning one off writes that file; an agent's rewrite of a workflow keeps whatever those lines said. There is no limit on workflows waiting for your OK. Up to 20 approved workflows may be on in each folder by default; the person can set the limit from 1 to 100 in Settings ▸ Cost. Turning one on past the limit is refused until you turn one off or archive one in that folder. See Workflow triggers and actions and its limits. No. The app answers.
manage_connectors Lists this folder's connectors, the MCP servers in its .agents/mcp.json, and whether each waits for your approval (#4538). approve asks you to approve one that waits, with a Needs you card on the Mac, the Remote and the web page that names the server, the folder and the session (Approve or Deny). The app approves it only when you approve it, and only as the entry was when the agent asked: an entry changed since is not approved. The agent role still cannot call mcp/approve itself. Your answer on the card.
ask_question Asks you a question or a short form and waits for your answer. Named ask_form until #2298; Antigravity's own question tool has the same name, and the brief tells the two apart by whose they are. Reaches you on the Mac or on your phone. Used when the runtime has no working ask tool of its own, or when that tool never reaches the model. No. The app answers.
need_user_help Asks you for help when the agent is blocked (#8009): it tried the ways forward it has, and the work cannot continue without a person. It takes blocker (what stops the work) and help_needed (what you must do or tell it; help to find out what is wrong is enough). It is an ask_question form: one Needs you card, linked to the session, titled Needs help: , with one free-text field for your reply, on the Mac, the Remote and the web page. The card is kept on disk and stays after the turn ends, so you see it when you open a client again. Your reply clears it and comes to the same session, which continues. A second call with the same blocker and help while the card is open makes no second card. Waits as ask_question does. Not offered on a bot's machine. The brief tells an agent to call it instead of ending a turn saying it could not do the work, to use ask_question for a specific choice and notify for news, and not to call it only because one more try failed. No. The app answers.
ask_secret Asks you for one secret, such as an API key, by its name (OPENAI_API_KEY), with why the agent needs it and, when it knows, a link to where you get it (#2885). Every client shows a card with a masked field. Save securely seals what you type in your ~/.agents-secrets/sealed.json on the machine that runs the agent, the store Status ▸ Secrets and connectors' ${NAME} use, which only agentsd opens; a secret saved there already is replaced, and the card says so. The agent is told the name and to read it with agents-secret NAME (below), never the value. The chat shows OPENAI_API_KEY: Saved to your secrets, and the value is not in the chat, the agent's record, the logs or a notification: a notification of it has no Reply, and voice mode says it needs your screen. Waits as ask_question does. No thanks tells the agent you did not give it. A secret saved with Ask before use (#4014) is sealed with a flag that makes each use ask: the agent is told that agents-secret refuses it, that it is not in its environment, and that it uses it with fill_secret, set_ci_secret, or as ${NAME} in the url or a header of an http server in .agents/mcp.json (#4120). Such a server is given to the runtime as a route of agentsd's own (http://127.0.0.1:<port>/mcp/secret/<route>, with the session's token); agentsd adds the value on each request it sends the server, so the value is never in the runtime's config or process. The route's first request asks a person, as a Needs you request of kind approve for the use mcp and the server's name (Always Approve is a grant for that server, for every session), and is never held: a start never waits on a person. Until they allow it, each request gets an error that names the request to wait on; once they do, the session's runtime starts again at its next turn and connects. A deny holds until the runtime starts again. A stdio or sse server with such a ${NAME} is left out, as one missing a secret is. agentsd's own uses do not ask: a marketplace's registry token or the Atlassian app's client id and secret with Ask before use is not used, and the marketplace list says so. With secret_description (#4167) the agent says what the secret is for (which account, which scopes, whose); the card shows it under the name in a Description field the person can change before Save securely, and the secret keeps it. A description that looks like a value is refused. No. The app answers.
agents-secret NAME A command on every session's PATH, not a tool (#4178): it prints the value of one of your secrets with Ask before use off, for the agent's own command (NAME="$(agents-secret NAME)" your-command), with no newline after it. It is agentsd secret, as git's and gh's credential helper is agentsd credential (#3926): the session's environment holds a grant (AGENTS_SECRET_URL, AGENTS_SECRET_GRANT) that can ask agentsd for a value and nothing else, made when the runtime starts and taken back when it ends. agentsd reads the session's own secret first, then this machine's store, and records each read as secret.read with the use command, the place agents-secret, the session and the name. A secret with Ask before use is refused, from a session too, with words that say to use fill_secret, set_ci_secret or an http server's ${NAME}, or to turn the flag off: a flagged value never goes into a process. A call with no grant, such as from your own terminal (#4179), asks you: it calls secrets/terminalValue on daemon.sock, which any process of your account may call, and agentsd opens a Needs you request (secretUse, use terminal, the place the name of the command that ran it, as that command says it), with Approve, Approve for 1 Hour and Deny. The command waits, says once that it waits, and prints the value when you allow it. Approve for 1 Hour lets every call of agents-secret NAME with no grant through for an hour, and is kept in agentsd's memory only, so a restart asks again. A read is recorded with no session and the place terminal. The row says the known gap: Agents cannot tell a terminal from an agent outside its session, so an hour's allow is open to every caller with no grant for that hour. From a terminal, run agentsd secret NAME from Agents.app/Contents/Helpers (AGENTS_ROOT names another root). The brief names it. No. agentsd answers.
list_secrets Lists the person's secrets and the calling session's own (#4167), a JSON line each: the name, the description (No description when it has none), the kind (card or none), whether it asks before use, whether this machine has a copy (onThisMachine; a secret of the person's that waits for one of their apps to seal it here says false) and sessionOnly. Never a value, and never the last 4. It reads this machine's files and the control plane's last message, so it never waits on a person. Its words say to call it before ask_secret, so an agent does not ask for a secret the person has given already. No. The app answers.
start_session Starts another session in this folder with a prompt of its own, marked as started by this session. It can choose the runtime, model, effort (a value or name the start form offers for that runtime, such as low or high; one it does not offer is refused, naming the ones it does, and Auto takes none, since there the effort follows the model's level; #5441), a permission mode no looser than its own (on its own runtime it takes its starter's mode when none is named, and, on Cursor, Grok and OpenCode in that same mode, its starter's Always Approve too, read when it starts; with a stricter mode, or a starter that asks, it asks; #7064), and whether to work in the folder, a new worktree, an existing worktree or a branch. If the project would go over either of its two helper limits, how many may be running and how many may exist not yet archived (3 and 5 unless you set them in Policy), counted across all the project's folders on every machine (#3281; a lead does not count, and a machine that cannot reach the control plane counts its own folders and says so), the session is queued instead, and the answer says which limit, names the sessions holding it and gives its place in the queue. A queued session runs nothing until a running place and a not-archived place are both free, behind working and waiting agents, and then starts by itself, highest priority first, then the oldest (#5848); it shows under Waiting as Queued, 1st, Queued, 2nd and so on, and survives a restart. Past the third limit, how many may be queued (5 unless you set it), the start is refused, naming the limits and sessions. A runtime that can't take an agent on this Mac (not installed, not signed in, or out of the pool on the Agent Runtimes page) is refused before anything starts, with the reason and the runtimes that can; so is a model the runtime doesn't offer, naming the ones it does. With no runtime named, it starts on Claude, which is checked the same way. With machine, it starts the session on another of your machines instead, by its name as list_machines shows it, in this project's folder there, or with folder in that folder (an absolute path on that machine), such as a folder of another project. With machine alone, a project with no folder there, or more than one, is refused, naming them; so is a folder in no project (#3277). Dragon Rider asks you first, on the agent's question card, and nothing starts without your yes, unless you turned on Agents may start sessions on my other machines without asking in Folder Settings ▸ General (#2928). With send, the branch the agent is on, with its uncommitted changes, goes to that folder before the session starts; a folder there with work of its own, or a machine that is not running, refuses before you are asked (#2929). With machine: "auto", the control plane picks the machine, by the rule and with the reason of the New Session form's Auto (the best machine with this project and the runtime, by capacity and then load; #5876): the card and the answer say why, such as "Auto chose Mac mini: least busy, load 0.4 per core.", and when Auto finds none (no folder, all offline, no runtime) the start is refused with Auto's own words. A stopped machine is started, and the session starts when it connects. That session's chat says which agent started it, and on which machine. This project's limits count it, and a start past them is refused, not queued. list_sessions with started_by: me, stop_session and archive_session reach it by its id through the control plane, and only for the agent that started it; its end comes back to a wait on agent.ended (#2887, #2927). read_session, message_session and a wait on agent.ended reach it as any session of the project (#3277). The runtime decides.
stop_session Stops a session this agent started, or one below it, as your Stop would. That frees its running place; it keeps its not-archived place until it is archived. A queued one is taken off the queue and never starts; so is one you or the agent archives. The runtime decides.
archive_session With no id, archives the agent's own session once its turn ends. The agent says why in reason, one short sentence (at most 200 characters), and a call with no reason is refused; the card that asks you shows it, and so does the mark's tooltip (the card's line on iPhone and iPad). With an id, reason is optional. The archived session's record keeps it (#6067). Its description tells the agent to call it when its work is done and nothing is left for you to see, and not when it showed you a file, asked you a question or has a report for you. It archives if the turn ends Complete, Nothing to do or Partly done; an ending that asks you something else (a question, stuck, waiting on others) drops it, and so does anything you send first. Where it needs your approval, the session then carries an Archiving needs approval mark and is listed in Needs You, with a card at the end of its chat, until you click Approve (see Statuses and groups). A workflow's run its workflow lets archive itself (when-done: archive-allowed or archive, see When a run is done), or a session started by another in a folder where sessions may archive the sessions they started, is archived without your approval, if the turn ends Complete or Nothing to do. It goes with move_worktree: the agent moves, and stays there waiting for approval instead of being started again. With an id, for a session this agent started or one below it, once its work is merged or abandoned: where Sessions may archive the sessions they started is on in Folder Settings ▸ General (on unless you turn it off), it is archived now, as your Archive would, or when its turn ends if it is still working (if that turn ends Complete or Nothing to do; otherwise it waits for your approval). Its conversation says which agent archived it, agent.archived says by another agent, and you can unarchive it from Archived. Where the switch is off, it waits for you to approve archiving it. Either way its running place is freed once its turn has ended; it keeps its not-archived place until it is archived. Refused, in words, for your own sessions, a workflow's, and sessions not below this agent. The runtime decides.
move_worktree Moves the agent once its turn ends. On Claude, Copilot, Cursor and Codex only: the runtimes that can carry the conversation into another folder. worktree names a new worktree of the folder or gives the path of one that exists, and leave_worktree (keep or remove) goes back to the folder. Neither takes back a move it asked for. The agent is started again there to carry on, unless it also asked to be archived. A move doesn't go with a wait or with Waiting on your answer. Nothing uncommitted comes along. Removing takes the branch too when the app made it and it is merged; an unmerged branch is kept with its commits, so a lane can remove its worktree as soon as its work is committed. Removing is refused for a worktree the app did not make, another agent works in, or that is detached or whose branch is gone (its commits would be on no branch), and, unless the agent says to discard, when anything in it is uncommitted. The refusal names the files. The runtime decides.
set_session_labels Adds or removes labels the agent owns on its own session, at once. It cannot remove or claim one of yours. Use set_session_refs to change the session’s links to work. The runtime decides.
set_session_refs Adds or removes work refs using the item’s provider, forge instance, scope and item identity. An agent can remove only its own refs. To assign work when starting a session, pass the refs in start_session with works_on. The runtime decides.
set_session_priority Sets the priority of the agent's own session, or of a session it started, to high, medium or low, or clears it with issue (#5847). A set priority wins over the session's issue's; cleared, the session goes by the highest priority of the issues it is labelled with (#n, and the issues a P#n fixes), else by the priority of the session that started it, else none. start_session takes priority too. A person sets the same with agents/setPriority. The runtime decides.
list_sessions Lists the sessions in this project, most recent first, its own included: each one's id, title, runtime, status, worktree and branch, the resources it holds, and what it last said. That is every folder of the project on this Mac and, through the control plane, on your other machines (projects/sessions); a session in another folder says which, and one on another machine says which machine and folder. A machine that did not answer is named at the end. A folder in no project, or a Mac on no control plane, lists only what is here (#3277). If this agent has a message waiting for a session, that line says so with the text. Nothing from another project. With started_by: me, it lists only the sessions this agent started, and the ones below them, that are not archived (one it did not start itself says who did), what each is doing and last said, after how many of the folder's running and not-archived places are in use, such as "2 of 3 running, 4 of 5 not archived", with ", 2 of 5 queued" once any are. A queued one says queued (position 1). It ends with the runtimes start_session can start one on here, as of that moment, each with its model where this folder has used it, and why each of the others can't. No. The app answers.
read_session Reads one session in this project, on this Mac or another of your machines, by its id or exact title: what you asked, what the agent said, the tools it ran and the files they touched, what it said of how the work went, and its plan as it last stood. If this agent has a message waiting for that session, the header includes it. A long one keeps the first request and the latest turns and says how many were left out. Reading it changes nothing. A title used twice, a deleted session, or one not in this project is refused in words. Used when you ask an agent to continue another session's work. No. The app answers.
message_session Sends words to another session in this project, on this Mac or another of your machines, by its id or exact title. It reads them as a prompt marked as the sender's, and its chat shows them as "From" that agent on the Mac, the Remote and the web. A session that is working reads it after its turn; one that is done is woken by it, yours included, within the folder's running limit for sessions started by sessions; one that is stopped, or one waiting on your answer, is not woken: the message waits in its chat for you. It never answers a question or permission card. A session that another session started takes messages only from that session; a message to it from any other session is refused, and nothing is sent (#1695). A message to a session in a looser mode, or with its sandbox off while the sender's is on, waits in its chat for you, unless that session started the sender or ran the sender's workflow: then it goes at once (#1728). One queued message per sender and target: a second send while the first is still waiting is refused, quoting the waiting text; replace: true swaps that text and keeps its place. cancel_message takes it back. A message held for a looser target still counts as the one queued. Limits: 4,000 characters and 30 new messages an hour per sender; replace and cancel do not count towards the hour. Raises agent.messaged on a new send, not on replace or cancel. No. The app answers.
answer_permission Answers a permission card of a session the agent started (#5440), with allow or deny, on the same card you see. The card shows to you at once and is never held for the agent: whoever answers first answers it, and when the agent does, the card closes on the Mac, the Remote and the web page and the chat's line says ‹Lead› chose ‹option› in place of You chose. Only the session that started the helper (with start_session, or a workflow it ran) can answer, and only that helper's open card; request names the card when more than one waits. Allow is always Allow once, never Always Allow, and only for what the agent's own permission mode would do without asking: a read, search or fetch from the default mode up, an edit from Accept Edits up, a command or anything else from Auto up; never when your policy says Ask me for permission requests or the organisation's policy caps the mode, and a command never when the agent's sandbox is on and the helper's is off. Deny it can always choose. A step that is hard to undo stays with you, allow or deny: a delete, a file outside the helper's folder, a force push or a deleted branch or tag, a hard reset, a clean or a dropped stash, an rm, sudo, a publish (npm, cargo, docker push, a release, a new repository), gh api or curl that writes, outside infrastructure (kubectl, terraform, the cloud CLIs) or a payment. agent.asked_permission carries the card's request and tool, so a lead can wait on it; each answer it gives raises agent.permission_answered (by, by_title, answer, request, tool), and the call is in the app-tool log as permissions/answer. Not #46's auto-approve: no model or rule answers for you; an agent you started answers its own helper, by its name. No. The app answers.
cancel_message Takes back this agent's queued message to another session of this project on this Mac, by its id or exact title. It says when nothing is waiting (already read, or nothing was sent). Only this sender's own message is removed; the person's queued prompts are left. No. The app answers.
lease_resource Takes a turn with something only one agent should use at a time: a simulator, a browser, the screen, or anything it names. If someone else holds it, it answers at once with the agent's place in line, and how many sessions with a higher priority are ahead (the line goes by the session's priority, then by, then who asked first; #5848), which is a wait for its lease.granted event (#2361). capacity (#4579) is on every machine, and is granted only while the machine's level is ok; it and build go in line while the machine is near or full, also with a free place, and the reply says why. A lease lasts 30 minutes unless the agent asks for up to 240 (or the declared resource's own lengths), and calling it again extends it. A declared resource may allow more than one holder at once. The runtime decides.
drive_screen Drives a named app on this Mac through its own screen, mouse and keyboard, for a task no API reaches: a non-browser app, or an app's own GUI. Takes the screen lease the first time it is called, the same way lease_resource would; a second agent calling it queues behind the first. click presses by label (the element's title, description, value or help) or by x,y; type sends real keystrokes; key presses one named key; read answers with the app's own accessibility tree; screenshot answers with a picture of the whole screen, sent once and not kept. Needs a Mac with agents-drive beside this host, Desktop control turned on in Settings ▸ Machines ▸ This Mac (off by default), and Accessibility granted to it; refused, naming the rule, otherwise. When the person moves the real mouse or presses a real key while the agent holds the lease, the call stops where it is (typing stops part way) and waits: every client shows a card with Resume, which goes on from where it stopped, and Take Over, which lets go of the lease at once and refuses drive_screen for the rest of that turn. While it holds the lease, every client showing the session draws a live tile at the chat's end: the latest picture of the whole screen (Mac is locked and no picture while the screen is locked) and the last action in words, after each action and at least every 5 seconds (desktopControl/liveFrame); no picture is kept. The runtime decides.
browser_navigate, browser_snapshot, browser_click and the other browser_* tools Drive this machine's browser (#3534): the tools of the Playwright MCP server (@playwright/mcp, the version this host carries), under their own names. The first call installs Node, and Chromium on this machine when they are not there yet, starts the browser, and takes the browser:agents lease, the same way lease_resource would; a second agent queues behind the first and is told its place. The host starts one Playwright server for the session, in its folder, and passes each call through. Every result goes through the host first: the value of each secret filled into the page comes out as <secret NAME>, and a link to a file Playwright wrote (the page after an action, new console lines) names the tool that reads it instead, such as browser_snapshot. The lease and the Playwright server end with the agent's turn; the browser, its pages and its sign-ins stay. The browser has no passkeys (#4084): Chromium starts with WebAuthn off (--disable-blink-features=WebAuth), so a page sees no PublicKeyCredential and does not wait on a passkey dialog nobody sees; agents sign in with a password and TOTP (#3908), and browser_passkey starts it again with WebAuthn for a site that takes only a passkey (#4085). The host uses the Chromium build that Playwright installs. On macOS, Chromium keeps its windows below the screen until a local takeover or hand-off shows one. On Linux, Chromium runs without a window. Sign in to Google and Microsoft directly in Chrome or Safari. Not listed on a machine where the browser cannot be installed. The runtime decides.
fill_secret Types one of the person's secrets (Status ▸ Secrets) into a field on this machine's browser's page (#3530), named as browser_type names it (target: a reference from browser_snapshot, or a selector), and presses Enter after it with submit. A card secret (#3531, Status ▸ Secrets ▸ Add a Card…, only a card with a spend limit) is filled a part at a time with part: number, expiry (MM/YY), exp_month, exp_year (YYYY), cvc, name or zip, and the optional billing address (#5569) line1, line2, city, state and country; the agent gets <NAME> <part> filled., and from then on every part of the card is out of what it reads, the number as <secret NAME.number ending 4242> and the CVC wherever it stands as a whole number. The host opens the value from its sealed store and types it through the agent's Playwright server; the agent gets <NAME> filled., never the value, and the record keeps the name and the field only. After the fill the field is drawn as dots (-webkit-text-security, drawn so again when the page changes its style), so screenshots and the stream show no value; every browser result has it out as <secret NAME>; browser_evaluate is refused on a page with a filled field until the page navigates; and while any value is filled into the browser, browser_run_code_unsafe and any call with filename (a file would skip the filter) are refused. A field that cannot be drawn as dots is emptied again. A secret that is not set yet is refused with words that say to ask for it with ask_secret first; one shorter than four characters is refused, as the filter cannot hide it. A secret with Ask before use (#4014) waits on a person's approval for the field's domain (#4015): a Needs you request of kind approve, answered Approve, Approve for This Session, Always Approve (a grant for that domain, for every session, kept sealed with the secret) or Deny, by the person's own clients only. The call is held as ask_question's is; after the hold, it names the request, and the agent waits for it with wait_for_event where: {request: <id>} and calls again. A deny is an error that says a person denied it. The promise is ask_secret's: an agent that tries hard can read a secret with Ask before use off with agents-secret NAME or reach Chromium itself; the sandbox is the wall. Listed with the browser tools. The runtime decides.
generate_secret Makes a strong password with crypto/rand, saves it in Status ▸ Secrets as secret, and types it into a field on this machine's browser's page as fill_secret does (#4000); the agent gets <NAME> made and filled., never the value, and the page is closed to it as after fill_secret. rules takes the site's rules in the passwordrules format (minlength, maxlength, required, allowed, max-consecutive) or a preset, alphanumeric or pin (with length, default 6). With no rules it reads the field's own passwordrules, minlength, maxlength and pattern; when the field has none, 24 characters of lower, upper, digits and symbols. It uses the longest length the rules allow (at most 128), one character of each required class, and refuses rules no password meets, with the reason. A name that exists is refused unless replace is true, which keeps the old value as <NAME>_PREVIOUS. A confirm field is filled with fill_secret and the same name. Listed with the browser tools. The runtime decides.
capture_secret Saves a value that this machine's browser's page shows once (an app password, an API token) in Status ▸ Secrets as secret (#4028). target names the element as browser_click does; the host reads its text, or a field's value, and saves the first match of pattern (a Go regular expression), or the whole text trimmed. The agent gets <NAME> saved (N characters)., never the value, and from then on every browser result has it out as <secret NAME>. It refuses, without saying what it read, when nothing matches or the match is shorter than four characters. A name that exists is refused unless replace is true, which keeps the old value as <NAME>_PREVIOUS. Listed with the browser tools. The runtime decides.
pair_web_page Opens the app's web page in this machine's browser, paired with the person's account, so an agent can do a step only the web page does (Connectors, Settings) with no person (#4214). The host asks the control plane, on its own uplink, for a one-time browser code (machine/pairWebPage, two minutes) and opens http://localhost:<port>/#code=<code> in the agent's tab; the agent never sees the code. Only the machine on the control plane's own Mac gets one, while the web page is served, and the code is that machine's person's; a stranger on the daemon's socket cannot call it, and the code pairs only from the page, as any browser code does. An agent does not approve a connector or turn on a workflow there for the person: manage_connectors and manage_workflows ask the person instead (#4538). Listed with the browser tools. The runtime decides.
browser_emulate_device Makes the session's tabs in this machine's browser a phone (Playwright's Pixel 7: 412×839 CSS pixels at 2.625×, touch), a tablet (Galaxy Tab S9: 640×1024 at 2.5×, touch) or a desktop browser again (#4086), as a browser's developer tools do. The host sets it over CDP (Emulation.setDeviceMetricsOverride, setTouchEmulationEnabled and setUserAgentOverride), because @playwright/mcp's --device does not work with --cdp-endpoint. The user agent is the browser's own Chrome on Android, and its client hints (Sec-CH-UA) keep the browser's brands with Android's platform, so they agree. The profile is the session's: its tabs and the tabs they open take it, and no other session's tab changes (#3916). It holds until the session calls it again, its tabs all close, or the browser stops. The Agent Browser pane shows the page at the device's size, fitted to the pane. Listed with the browser tools; it takes the browser lease as they do. The runtime decides.
browser_passkey Gives the session's tabs in this machine's browser a software passkey (#4085), for an agent's own account on a site that takes only a passkey, or for a sudo step that asks for one. secret names the secret in Status ▸ Secrets that keeps it, one per account; site is the relying party's domain (github.com). The browser starts with WebAuthn off (#4084); the first call starts it again with WebAuthn on, until it stops, with its sign-ins kept and its tabs closed, as a site that checks for bots starts it headed. The host then puts Chromium's virtual authenticator (CTAP2, internal, a resident key, user verification) on each of the session's tabs over CDP (WebAuthn.addVirtualAuthenticator, with no UI), and on the tabs they open, and holds a CDP session on each, as the authenticator goes when its session detaches. When the secret is set, its passkeys for the site are put back (WebAuthn.addCredential); when it is not, the first passkey a page makes is saved as it. Each passkey a page makes, and each sign-in with one (its sign count goes up), is saved to the secret again (WebAuthn.credentialAdded, credentialAsserted). A new secret has Ask before use (#4014); a saved one keeps the flag the person gave it. Using a secret with Ask before use waits on a person's approval for the site, as fill_secret does (#4015). The agent is told how many passkeys there are, never a key; a secret that is not passkeys, or whose passkeys are for another site, is refused. off takes it off the session's tabs; the secret stays. It holds until then, the tabs all close, or the browser stops. The secret's value is {"site", "passkeys": [CDP credentials]}; one credential alone, as scripts/okta-signin.mjs keeps it, is read too. Listed with the browser tools; it takes the browser lease as they do. The runtime decides.
hand_to_person Hands the person one step on this machine's browser's page that no tool or secret can do (#3529): a CAPTCHA, a sign-in, a sign-in to approve on their phone, or a click only a person should make. The agent gives the step ("Solve the CAPTCHA") and the reason. Every client shows a question card with the step, why, Done and Can't do it (with a line for what stopped you); the Mac and the web page add Open the page, which opens the Agent Browser beside the chat at the agent's tab, and the Remote says to do it on the Mac or the web page. A notification answers Done or Can't do it in one tap. The agent is told the answer and, after Done, to read the page again and carry on from it. Waits as ask_question does: after about 45 seconds the agent is told to end its turn, and it is started again with the answer. While the card is open, the agent's other browser calls are refused, and it keeps the browser:agents lease past the end of its turn, so no other agent takes the page from you; the lease's own length ends it if nobody answers. Takes the lease as the browser tools do. On the Mac that runs Chromium, the person can get its local window (#7259): the daemon takes the screen lease (now or not at all), moves the window with the agent's tab onto the screen, brings Chromium to the front with agents-drive, and the card says Do it in the agents' browser window, in front (accounts.google.com) on your Mac in place of Open the page. A press-and-hold check or a Touch ID or iCloud Keychain passkey prompt works there, where the screencast cannot carry it. When the card comes down (Done, Can't do it, or any other end), the window goes back below the screen, the app that was in front before comes back, and the lease is let go; the lease stays past the agent's turn's end until then. When another agent has the screen, the screen is locked, or Chromium does not come to the front, the card is the screencast's, with Open the page. An agent never does a human check itself with synthetic input. None on a bot's machine. Listed with the browser tools. No. The app answers.
release_resource Gives back a lease, or leaves the line for one. The runtime decides.
list_resources Lists what can be leased on this Mac, and who holds or is waiting for what. Resources declared in Settings ▸ Resources come first, with their descriptions, even when free; the agent is told to lease one whenever its description applies. The runtime decides.
wait_for_event Waits until an event happens in this folder or on this Mac, such as agent.finished, branch.moved, or mac.wake, optionally narrowed by a filter: branch on branch.moved or why on person.away and person.back (one value, or a list meaning any of them, such as {"branch": ["main", "develop"]}; checked against the event's inputSchema with the same checker as an MCP server's event's, so any other key, or a value a filter cannot have, is refused in the same words, naming what it takes) and with a time limit, until_minutes, of 1 minute to 24 hours, which every wait needs: one without it is refused, so no wait can last for ever. The call waits up to 45 s; after that the agent can end its turn, which costs nothing, and it is started again when the event happens or the time runs out. The 45 s count from when the call came in. The call is also answered when this Mac goes to sleep and again when it wakes, so no call is open over a sleep. A wait on a server's event whose servers do not say within 45 s what they offer is refused, and nothing waits: the agent calls again (#6310). One wait per agent; a new one replaces the old. An unknown event name is refused, and the refusal names the events that are offered. Waiting for sessions is agent.ended alone with agent, the sessions by id or exact title (#3799): they can be in this project, on this Mac or another of your machines, whose machine tells this one when each ends (#3277). The agent's turn ends at once, it shows as Waiting, and it is started again, told how each one ended, once every one has ended, or the first with wake_on: any. One that has already ended answers at once. message is what its row says meanwhile. See Events. To resume at a time with no event, it waits on time.reached alone (#4843): nothing raises it, the wait ends at until_minutes, the agent is told "The time you asked for has come", and the card says "Waiting until 15:30". A time that came while the Mac was off or asleep, or Dragon Rider stopped, is told on wake or restart with how late it is; past an hour's grace (#4966), the agent is told the time "passed while Dragon Rider was off or the Mac was asleep", so it checks whether what it meant to do still fits. The workflow clock, which reads the wall clock every 15 seconds, ends a wait whose time came while the Mac slept. A list with time.reached and other events is refused, since every wait already ends at its deadline; a workflow trigger refuses it, as a schedule runs at a time. The runtime decides.
cancel_wait Stops the agent's wait, so nothing starts it again for it. The runtime decides.
list_machines Lists the machines the control plane's hosts run on, from every machine provider: each machine's state, the host it is linked to and that host's state, and, for a provider that can make machines, the choices a new one takes. Then every machine of yours by name and state, made by a provider or not, where start_session can start a session, each with its capacity: the level (ok, near or full), its 5-minute load per core and how long ago the control plane heard them (#5875), or no figure when it has none or the figure is older than 2 minutes, the rule Auto uses. Pick a machine that is not full for heavy work. Never a provider's secrets. On a host that isn't on a control plane, it says there are none. See Start machines from Dragon Rider. The runtime decides.
start_machine Starts the machine a host runs on, by the host's name. It answers at once; the host is up when it connects, which the agent can wait for with wait_for_event on server.online. The runtime decides.
stop_machine Stops the machine a host runs on, and every agent there with it. While agents are working there it is refused, naming them, unless the agent says confirm_running. The runtime decides.
make_machine Makes a new machine at a provider that can, with its choices; it joins as a host of the same name. It may cost money while it runs. Yes, always. A question card on every client, and nothing is made without your Make it.
delete_machine Deletes the machine a host runs on, with everything on its disk, and removes the host with its agents. Given a make that failed, it deletes only its row: the provider made nothing (#6078). Yes, always. A question card on every client, and nothing is deleted without your Delete it.
bring_back Brings a branch back from a folder on another of your machines into the repository the agent works in, as Bring Back from a Machine… does (#2947): by default the branch checked out there, and with changes its uncommitted changes too. The branch moves forward only, and work done here is never overwritten. A machine that is not running, a branch it does not have, or uncommitted changes here when changes is on, refuse before you are asked. Yes, always. A question card on every client, and nothing comes back without your Bring it back.
move_session Moves a session, with its unpushed work, to another of your machines, where it goes on (#3717): the agent itself, or a session it started. The branch it works on goes to the folder there first, with its commits and uncommitted changes (the folder is made there when it is missing), then the session goes on there with the same id, labels, transcript and runtime, and this machine lets it go. The runtime's own conversation stays behind, so the runtime there reads the app's record of the conversation ahead of its next prompt. An agent moving itself moves when its turn ends and carries on there; a session it started is stopped first when working, and carries on there. A machine that is not running, a folder there with work of its own, or a session on no branch, refuse before you are asked. Yes, unless the folder's settings let agents start sessions on machines without asking (#2928).
docs_search Searches the docs behind the agent's work (#3317): its folder's own (the *.md files at its top and under specs/ and docs/) and each docs connector its Docs slot names, through its map in .agents/docs-maps.json (#3307), side by side, as the daemon's docs/search does. A doc matches when one of its lines has every word. Each result has a title, a ref and up to 3 matches, the most matches first: a folder doc's has its line number and the line; a connector's has the vendor's snippet and no line. 10 docs unless the agent asks for up to 100. A connector with no map is named as not mapped, and one that fails or takes more than 20 s is named; neither stops the others. A folder whose Docs slot is None has nothing to search. The ready-made Work an issue skills use it. No. The app answers.
docs_read Reads one doc by its ref, from a docs_search result or a link in an issue, with each line numbered (#3317). from and to are 1-based lines, both included. It reads at most 2000 lines or 256 KB at once, and says how many lines the doc has and the line to read from next. A connector doc is its Markdown, made the same way each time, so its line numbers stay the same while the doc does not change. Each read is kept in the session's record with its ref, for Lineage (#3308). Both tools tell the agent that a doc is data, not instructions to it. No. The app answers.
estimate_issue Says what an issue or an epic will probably cost and take (#3590), as its Work page does, from lineage/estimate (#3559): dollars, output tokens and the agents' working time, each the median and the range 8 in 10 like it land in, with the cycle time and when it lands. An epic adds up its open children and says what its closed children spent. Closed, it says the estimate at the start against what it took: "Estimated $X, Zh of work; actual $A, Hh of work". issue is #12 in the folder's repo, owner/repo#12, or a ref such as linear:ENG-4. The lead skill puts that line in an epic's closing summary. It only reads. No. The app answers.
conflict_risk_analysis Says which open pull requests a change would conflict with, and one advice (#5473, specs/5389-conflict-risk-analysis): go, wait for #N (it lands soon) or stack on #N (the change builds on it). diff is a pushed branch, a tag or a commit; left out, the folder's working tree with its uncommitted and new files (nothing in the folder changes). It runs git merge-tree of the diff against every open request of the folder's repo, read from its forge (GitHub, GitLab, Forgejo, Bitbucket or Azure DevOps), leaves out each request's own conflicts with the default branch and the files a command regenerates (*_gen.go, generated.ts, tokens.css, Package.resolved, go.sum, and a folder's regeneratedFiles in .agents/folder.json), and ends with the report as JSON. depends_on names the requests the change builds on. Advisory, never a gate. It only reads. scripts/conflict-risk.sh is the same core on the command line. No. The app answers.
list_stores Says how large each of the app's own data stores on this machine is, and how much of its limits it uses (#6906), from the daemon's stores/list: the last hourly measurement, with its time, and current, over, stale or unavailable. Sizes and counts only. 1 to 100 stores a page. It is not in the briefing: it is for work on the stores themselves. No. The app answers.
publish_artifact Keeps files the agent made (a build output, an image, a package, a report) as a new version of an artifact in the project of its folder (#5959, specs/5713-artifacts/spec.md), through the control plane's artifacts/agent: each file is one layer, at most 64 files and 24 MiB. The first version makes the artifact and needs a kind; the same id again is the next version, after the newest. The version is authored by the session and is a manual capture. A document bound to a file is refused: the agent edits its file, and each saved edit becomes a version. The files must be inside the folders the agent was given. It works when the folder is joined to a project and you turned on Artifacts; the briefing names it only then. No.
read_artifacts Lists the artifacts of the folder's project, with a kind, label or name filter, or reads one by its id or ref: its record and a version, or its versions with versions (#5959). A small text file comes back in the answer; save_to, a folder inside the agent's folders, writes the version's files there. Under the same conditions as publish_artifact. No. The app answers.
commit_trailers Gives the trailer lines for a commit by the session that calls it (#6362), by the commitTrailers rule of its folder's policy, from the daemon's git/trailers (policy.md, "Commit trailers"): Managed-by, Runtime, Model, Session, Fixes (Refs with no pr), Epic, Requested-by, Approved-by, Cost, Tokens and Duration, each on or off by the policy; a trailer with no value is left out. A Co-authored-by is the runtime's own, never one of these (#7174). With pr, the lines for that pull request's squash message: its approvers and the totals of every session on it. The agent writes them as they come, as the message's last paragraph, and types no trailer by hand; in this repo scripts/automerge.sh puts them in the squash message. It only reads. No. The app answers.
set_ci_secret Puts one of your secrets into a GitHub repository's Actions secrets (#3706): the agent names the secret it asked for with ask_secret (one for this session only, or one in Status ▸ Secrets) and the CI secret's name. The app reads the value, seals it to the repository's public key (libsodium's sealed box, as GitHub asks) and puts it with your GitHub connection. The value is in no argument, result or transcript, so the agent never sees it. repo is owner/repo, or the folder's own when left out. A secret with Ask before use waits on a person's approval for that repository (#4015), as fill_secret does for a domain. The brief names it only on a machine with GitHub connected. No. Your own ask_secret card gave the value.
set_ci_variable Makes or changes a GitHub repository's Actions variable, which is not secret (#3706): names and ids, such as a cloud project or a service account, that workflows read as ${{ vars.NAME }}. No.
set_environment_gate Makes a GitHub repository's environment, or changes one, so that a deploy to it waits until one of its reviewers approves it (#3706, #3587): 1 to 6 logins, and teams as org/team, in place of any before. The app shows the waiting deploy for you to approve. GitHub Free has required reviewers on public repositories only; the starters hold a deploy without them (#5564). No.
make_app_repository Makes a new app's repository (#3708): a private GitHub repository, made with your GitHub connection in your account or an organisation, with a starter pushed as its first commit on main, its placeholders filled from values. The GitHub App cannot make a repository (it has no Administration permission, #5563), so with an App connection GitHub refuses, nothing is made, and the answer tells the agent the person's step: a hand_to_person card on github.com/new from the template (private), then the App installed on the new repository. Called again, it fills in values over the template's files as one commit, without the files .starterignore names. A personal access token with the repo scope still makes the repository itself. A starter is a GitHub template repository (#4561): iphone-app (agentloops-dev/iphone-app-starter), web-service (agentloops-dev/web-service-starter), or any other as owner/name; the app fetches its default branch with your connection and leaves out the files its .starterignore names (the template's own CI and README). The app clones it on the agent's machine, beside your other clones, and adds it as a folder, so it shows in the session list on every client. Each step that is done already is skipped (a repository that is there, one with commits, a clone in place), so the agent calls it again after a step fails. The token goes to git in its environment, never in the clone's config. The brief names it only on a machine with GitHub connected. No.
make_public_repository Makes a public GitHub repository (#4921), with your GitHub connection in your account or an organisation, with the files of a folder on the agent's machine as its first commit on main, as a template repository when template is true. Making something public is your choice, so the call puts a card in front of you that names the repository, the folder, its file count and its top entries, and makes and pushes nothing until you say yes; a card still open after the hold does it when you answer, and tells the agent. The files are read before the card and kept, so a yes pushes what the card counted. .git is left out; a link, a special file, the home folder and ~/.ssh, ~/.gnupg and ~/.agents/secrets are refused; at most 2000 files and 50 MB. The push goes from a clone of its own, which is removed; the token goes to git in its environment. A repository there already is used when it is public and empty; a private one is left as it is. A runtime's own permission check (Claude Code's auto mode) refuses gh repo create --public even after a form's yes, so this card is the approval. The brief names it only on a machine with GitHub connected. No.
meeting_notes Keeps notes, speakers and action items in a meeting's session with the meeting-mode flag on. Record each agreed action as soon as possible. Give a short summary for the issue and a quote for the meeting. The app files the issue after 90 seconds (#8015). The Mac Meeting pane can cancel filing or close the issue.

set_session_labels adds or removes labels owned by the agent. start_session can give the new session labels, which it owns from its first moment: up to five, and apart from them up to 20 links (#12, P#12) and merged, closed or archived (#7241). Labels are unique within a session without regard to case. An agent cannot remove or claim a person-owned label; the whole call is refused if it tries. See Label a session.

start_session, stop_session, archive_session and list_sessions with started_by: me are given to every agent, including one another agent started (#940). The folder's helper limits are the bound: they count every session an agent started, whoever started it. An agent can stop, archive and list the sessions it started and every session below them (the sessions those started, and so on), never your sessions, a workflow's, or another agent's. Each session keeps its direct starter, so the chain shows who started whom. Archiving or stopping an agent leaves the sessions it started working; every agent above it, and you, can still stop or archive them. Every agent is told, once at the start, to ask to archive its own session in its last turn, once its work is merged or abandoned and cleaned up (#703).

Before #638 these were start_agent, stop_agent, request_archive, archive_agent, list_my_agents and message_agent (and park_agent before request_archive). They are no longer offered or answered; a conversation that called them still shows those calls as the app's own.

A session started by another counts as running while it is working, waiting on a question or permission, starting, or waiting to carry on by itself: waiting on other agents, a time or events, or waiting for an allowance. Finished, stopped and archived helpers don't, nor does one waiting for archive approval. So a lead that stops a helper whose part is done, or archives it, frees a running place once its turn has ended; the helper's not-archived place stays taken until it is archived. A lead should archive a helper once its work is merged or abandoned, rather than remove the helper's worktree under it; archiving removes a worktree the app made for it once everything in it is committed. Both limits are yours alone to change: the tools only read them. They are kept in the folder's .agents/folder.json; a value written there by hand is held to the maximums. list_sessions, read_session, message_session and cancel_message are given to every agent, including one another agent started.

The project is the unit (#3277). These tools reach every session of the agent's project, not only its folder's: the other folders of the project on this Mac, and, through the control plane, the project's folders on your other machines. The control plane asks only your own machines, and only for a machine with a folder of the project. Permissions do not change: an agent still stops and archives only the sessions it started, and a session another session started still takes messages only from that session. A lead (#3265) uses them to see, read and wait on the lanes of its epic on every machine of its project.

The five machine tools are given to every agent. The control plane does what they ask as it would for you, and its log names the agent that asked. Agents reach providers only through the control plane, never directly.

See also