create_agent_run
Create a persisted agent run for a natural-language task, with auto or manual approval and optional paused start. Returns run ID and status after tracking steps, events, and checkpoints.
Instructions
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.
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 |