codex_interrupt_turn
Interrupt a running Codex turn using thread, turn, operation, or workflow IDs to cancel or stop execution. Poll for status until termination.
Instructions
Interrupt a running Codex turn by direct ids or durable operation/workflow context. Use this for explicit cancellation or stop conditions. Next poll status until terminal evidence is visible.
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": "codex_interrupt_turn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | No | ||
| turn_id | No | ||
| operation_id | No | ||
| workflow_id | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| agentGuidance | No | ||
| agentGuidanceText | No | ||
| recoveryAttemptState | No |