agent_run_start
Start a TeamShared Cloud Agent (router + FastMCP). Not a Cursor VM.
The worker mints a short-lived org tsk_ and runs the tool loop against in-process FastMCP. github= is an optional checkout. One active run per work item — a busy run returns status=busy. When the compact bootstrap profile is non-empty it is prepended (capped). When work_id has playbook_slug, that named playbook is prepended after the profile, its skills listed by name for the run to load with memory_skill_get. Unset slug or omitted work_id: no playbook inject. run.model is the model that will run: a model= the router would refuse is substituted (see model_substitution). agent_slug= binds the run to an agent record (#733); the result's agent.inherited says which settings came from it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Optional workspace slug stored on the run | |
| agent | No | Override agent attribution label | |
| model | No | Router model id (prefixed, e.g. openrouter/...); omit to use TEAMSHARED_AGENT_RUN_MODEL. An id the router would refuse (no routable prefix) is replaced by that default and the result carries model_substitution={requested, model, reason}. | |
| tools | No | Tool name/prefix patterns this run may bind (e.g. ['work_*','memory_recall']). Narrows the box allowlist; never widens it. Omit for the deployment default. | |
| github | No | owner/repo — optional checkout for the worker. Omit for a no-repo run | |
| prompt | Yes | Task prompt for the TeamShared Cloud Agent | |
| work_id | No | Work item UUID; reuses that item's TeamShared agent | |
| agent_slug | No | Agent record to run as (agent-<label> or <label>; see agent_list). The run inherits the record's model and tools: an explicit model= wins, an explicit tools= can only narrow the agent's. Unknown, paused or archived agents are refused. | |
| spawned_by | No | Parent Agent slug or label (dispatcher that spawned this worker) | |
| parent_run_id | No | Parent agent run UUID when this is a nested child run; defaults to the run that invoked this tool | |
| auto_create_pr | No | Hint to open a PR when a coding worker finishes (default true) | |
| durable_memory | No | Nested runs are ephemeral: no capture session or run memory of their own, the parent's work thread is the record. Set true for a specialist that must keep its own memory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||