44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
{
|
|
"description": "Spawn a sub-agent with a task. Blocks until done, returns the reply.",
|
|
"prompt": "## subagent_spawn\n\nSpawn a sub-agent with a task. Blocks until the sub-agent completes and returns its reply.\nThe sub-agent gets its own context window and tool access. It is destroyed when done.\n\n```\nsubagent_spawn(prompt=\"fix the failing tests in auth/\")\nsubagent_spawn(prompt=\"implement the login page\", cwd=\"$PWD\", model=\"sonnet\")\n```\n\nMultiple subagent_spawn calls in the same turn run in parallel automatically.",
|
|
"scope": "read",
|
|
"tier": "hot",
|
|
"timeout": 0,
|
|
"args": {
|
|
"type": "object",
|
|
"required": [
|
|
"prompt"
|
|
],
|
|
"properties": {
|
|
"prompt": {
|
|
"type": "string",
|
|
"description": "Task prompt for the subagent"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Subagent display name (optional)"
|
|
},
|
|
"profile": {
|
|
"type": "string",
|
|
"description": "Agent profile (optional, default: default)"
|
|
},
|
|
"backend": {
|
|
"type": "string",
|
|
"description": "Backend (optional)"
|
|
},
|
|
"model": {
|
|
"type": "string",
|
|
"description": "Model (optional)"
|
|
},
|
|
"cwd": {
|
|
"type": "string",
|
|
"description": "Working directory (optional, default: current)"
|
|
},
|
|
"timeout": {
|
|
"type": "integer",
|
|
"description": "Timeout in seconds (default: 0, no timeout). Do not set a timeout on sub-agents."
|
|
}
|
|
}
|
|
}
|
|
}
|