Interrupt a Codex task
codex_interruptHalt an active task turn while preserving its thread, so work can resume later.
Instructions
Stop the turn Codex is currently running for a task. The thread survives, so codex_continue can pick it back up.
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": {
"taskId": "<taskId>"
},
"name": "codex_interrupt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | Task whose in-flight turn should be stopped. |