Cancel a Lua job
lua_job_cancelStops a running async Lua job at its next frame and returns its job_id and cancellation status, so callers can confirm whether the job was cancelled.
Instructions
Asks a running job (started by lua_job, e.g. with async: true) to stop: it ends at its next frame, before resuming. Result: {job_id, cancelled (false if the id is unknown), note}. Its final state (cancelled) stays readable once with lua_job_status. Example: {"id": "server-g3-1"}.
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": {
"id": "<id>"
},
"name": "lua_job_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Job id (e.g. 'server-g3-1'). | |
| instance | No | Optional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| note | No | ||
| job_id | Yes | ||
| warning | No | ||
| cancelled | Yes | ||
| next_call | No | ||
| answered_by | No | ||
| truncated_note | No | ||
| version_warning | No |