agents_spawn
Start a local CLI agent in the background and get a task ID for immediate tracking. Default to read-only; use independent Git worktrees for parallel writes.
Instructions
Start a local CLI agent asynchronously and return a task id immediately. Use read-only unless edits are required. Parallel write tasks must use independent Git worktrees.
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": {
"provider": "<provider>",
"prompt": "<prompt>",
"work_dir": "<work_dir>"
},
"name": "agents_spawn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | Yes | ||
| provider | Yes | ||
| work_dir | Yes | ||
| permission | No | read-only | |
| timeout_seconds | No | ||
| isolated_worktree | No | Set true only when work_dir is an independent Git worktree. |