Fork Codex Agent
agent_forkCreate an independent worker by branching from an existing agent or Codex thread. Provide an optional prompt to start work immediately.
Instructions
Branch a managed agent or persisted Codex thread into a new independent worker. An optional prompt starts work immediately on the fork.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "agent_fork"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| prompt | No | ||
| forkOptions | No | Additional thread/fork fields passed through to app-server. | |
| turnOptions | No | Additional turn/start fields used when prompt is present. | |
| sourceAgentId | No | ||
| sourceThreadId | No |