LM Studio: cancel a task
task_cancelStop a running background task by task ID while preserving session history up to the previous answer. Use it to cancel ongoing work without losing prior context.
Instructions
Stop a running background task. The session keeps everything up to the previous answer.
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": {
"task_id": "<task_id>"
},
"name": "task_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task id from task_start or task_status. |