grok_task_cancel
Cancel a running Grok task and terminate its process tree when the task is no longer needed or has become unresponsive.
Instructions
当用户要求停止当前 Grok 工作,或确认任务已经失去响应时调用。它会取消任务并结束对应的 Grok 进程树。
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": {
"codex_task_id": "<codex_task_id>",
"project_root": "<project_root>"
},
"name": "grok_task_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | ||
| project_root | Yes | ||
| codex_task_id | Yes | ||
| working_directory | No |