spawn_agent
Launch an AI agent to execute a specified task, requesting clarification if needed and returning results upon completion.
Instructions
Spawn an AI agent to work on a task. Returns a question if the agent needs clarification, or a result when done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent name (e.g. "claude", "codex", "gemini", "aider") | |
| task | Yes | Task description to send to the agent | |
| context | No | Optional task context | |
| cwd | No | Working directory for the agent process | |
| model | No | Model to use (e.g. "o3", "gpt-5.4", "claude-sonnet-4", "gemini-2.5-pro"). Passed via --model flag to the agent CLI. | |
| thinking | No | Thinking/reasoning depth level (e.g. "low", "medium", "high", "max"). Controls how deeply the agent reasons. | |
| retry | No | Auto-retry on failure (default: false). | |
| escalate | No | On retry, escalate thinking level automatically (default: false). Requires retry: true. | |
| timeoutMs | No | Timeout in milliseconds (default: 3600000) |