spawn_external_agent
Spawn a non-Claude CLI agent (Codex or Gemini) in a tmux pane, register it in the team config, and start an inbox watcher so it works autonomously and receives messages.
Instructions
Spawn a new external (non-Claude) agent in a tmux pane.
The agent is registered in the team config and begins working autonomously. An inbox watcher is started to deliver messages to the agent via tmux injection.
Args: backend_type: CLI backend to use. Currently supported: "codex". subagent_type: Role description for the agent (e.g., "code-reviewer"). cwd: Working directory (must be an absolute path).
Names must be unique within the team.
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": {
"team_name": "<team_name>",
"name": "<name>",
"prompt": "<prompt>",
"cwd": "<cwd>"
},
"name": "spawn_external_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| name | Yes | ||
| prompt | Yes | ||
| team_name | Yes | ||
| backend_type | No | codex | |
| subagent_type | No | general-purpose |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||