interrupt_thread
Stop an active or selected turn in a coding thread to prevent further execution, ensuring retries target the original turn.
Instructions
Request interruption of the current or explicitly selected turn. The target turn is recorded so a retry cannot interrupt a later turn.
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": {
"operationId": "<operationId>",
"environmentId": "<environmentId>",
"threadId": "<threadId>"
},
"name": "interrupt_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turnId | No | ||
| threadId | Yes | ||
| operationId | Yes | Unique ID for this operation. Keep this ID and all arguments unchanged when retrying, including after a timeout. | |
| environmentId | Yes |