Start background task
start_taskLaunch long-running agent tasks in the background and get a task_id; choose worktree isolation for code changes you can review before applying.
Instructions
Start long agent work in the background; returns task_id. Use isolation='worktree' for code changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent name from list_agents, e.g. 'codex' or 'claude'. | |
| model | No | Model ID from list_models. | |
| images | No | Absolute image paths to attach (agents with supports.images). | |
| prompt | Yes | Instructions for the agent. | |
| workdir | No | Absolute project directory. Default: first trusted workspace. | |
| add_dirs | No | Extra absolute directories the agent may use. | |
| isolation | No | worktree = private git checkout; review with get_task_diff, then apply_task or discard_task. | |
| session_id | No | Continue this session (returned by earlier calls). | |
| output_schema | No | Optional JSON Schema; the reply is returned parsed as `structured`. | |
| fallback_agents | No | Agents to try in order if this one is out of quota or unavailable. | |
| permission_mode | No |