spawn_agent
Spawn an autonomous Codex subagent to work on tasks in your current directory. Provide a prompt with full instructions and get back the agent's final response.
Instructions
Spawn a Codex agent to work inside the current working directory.
The server resolves the working directory via ``os.getcwd()`` so it inherits
whatever environment the MCP process currently has.
Args:
prompt: All instructions/context the agent needs for the task.
Returns:
The agent's final response (clean output from Codex CLI).
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": {
"prompt": "<prompt>"
},
"name": "spawn_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |