codex_fork_thread
Clone a thread's session history into a new thread, allowing independent continuation or modification without affecting the source.
Instructions
Fork an existing thread into a new thread by cloning its session history.
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": {
"threadId": "<threadId>"
},
"name": "codex_fork_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | Yes | The source thread ID to fork from. | |
| cwd | No | Optional working directory override for the new thread. |