Interrupt a Codex turn
interrupt_codex_turnStop a running turn in a Codex thread by passing the thread ID and turn ID, ending execution when a prompt is no longer needed or must be halted.
Instructions
Stop a turn that is still running in a Codex thread.
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>",
"turnId": "<turnId>"
},
"name": "interrupt_codex_turn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turnId | Yes | Turn id reported by send_to_codex_thread | |
| threadId | Yes | Codex thread id |