create_agent_run
Create a persisted agent run lifecycle resource for a natural-language task. With approval_mode=auto (default) the run picks a tool from the task wording, executes synchronously, and returns completed; approval_mode=manual parks it at requires_approval until approve_agent_run, and start_paused=true parks it at paused until resume_agent_run. The run, its step log, append-only events, and a replayable checkpoint are persisted under the caller's organization and the creation is audit-logged. Use product_agent_run for the simpler synchronous helper, list_agent_runs to browse, and get_agent_run_events to follow the trail. Returns the full run resource with run_id and status.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>"
},
"name": "create_agent_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | What the agent should do, in plain words (min 5 characters). | |
| tools | No | Restrict the tools the agent may pick from; defaults to search, simulate, optimize, calculate, summarize. | |
| context | No | Optional structured context or data for the task. | |
| max_steps | No | Maximum execution steps, 1-50; defaults to 10. | |
| start_paused | No | Persist the run in paused state until resume_agent_run. | |
| approval_mode | No | auto executes immediately (default); manual waits for approve_agent_run before executing. | auto |
| output_format | No | Result format: text (default), json, or markdown. | text |