spawn_agent
Create a manager or child AI agent on a chosen backend, optionally assigning a task, model, workdir, and instructions to start multi-agent workflows.
Instructions
Create an agent. backend: codex (ChatGPT/Codex), antigravity, claude-code, ollama, lmstudio, vllm, or another name from fleet_status. role: 'manager' (can create its own child agents) or 'child'. Managers can only create children. If task is given it is sent as the first message. workdir (lead only) points the agent at an existing folder, e.g. a code repo.
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": {
"name": "<name>",
"backend": "<backend>"
},
"name": "spawn_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| role | No | manager | |
| task | No | ||
| model | No | ||
| backend | Yes | ||
| workdir | No | ||
| parent_id | No | ||
| instructions | No |