spawn_codex_agent
Start a background Codex worker to delegate coding tasks to OpenAI's CLI, with structured execution traces and persistent sessions.
Instructions
Start a background Codex worker with a Claude Code-style lifecycle.
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_codex_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| model | No | gpt-5.4 | |
| prompt | Yes | ||
| sandbox | No | ||
| timeout | No | ||
| agent_type | No | worker | |
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||