codex_fork_session
Fork an existing session by ID into a new independent session and execute a prompt, enabling branched coding tasks without altering the original.
Instructions
Fork an existing Codex session by ID into a brand new independent session and execute a prompt.
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": {
"session_id": "<session_id>",
"prompt": "<prompt>"
},
"name": "codex_fork_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model override. | |
| prompt | Yes | Instructions for the newly forked session. | |
| session_id | Yes | Session ID (UUID) to branch off. | |
| working_dir | No | Workspace directory root for execution. |