codex_cancel
Cancels the active execution turn, sends an interrupt, and waits up to 5 seconds for confirmation while blocking new work to avoid concurrent write conflicts.
Instructions
取消当前运行中的 Codex 执行轮次. 发送中断指令并等待最多 5 秒确认. 在旧命令确认停止前保持忙碌状态以防止并发写冲突.
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": "codex_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turnId | Yes | 轮次 ID | |
| threadId | Yes | 会话 ID |