Interrupt a Codex turn
discussion_cancelRequest interruption of a specific discussion turn, then confirm the final interrupted status with discussion_read; completed older turns return without stopping newer work.
Instructions
Request interruption of exactly the specified turn. An accepted cancellation request is distinct from the final interrupted status; confirm with discussion_read. Completed older turns are returned without interrupting newer work.
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": {
"discussionId": "<discussionId>",
"turnId": "<turnId>"
},
"name": "discussion_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turnId | Yes | ||
| discussionId | Yes |