spawn_agent
Creates a background subagent session on a chosen model backend so a primary agent can delegate coding tasks. Supports human-in-the-loop approval and crash recovery.
Instructions
Legacy helper: create a new background subagent session on the given backend runner.
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": {
"session_id": "<session_id>",
"workspace_path": "<workspace_path>"
},
"name": "spawn_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| runner | No | agy | |
| agent_type | No | ||
| session_id | Yes | ||
| max_retries | No | ||
| hitl_enabled | No | ||
| workspace_path | Yes | ||
| reasoning_effort | No | ||
| skip_permissions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |