Stop a background job
stata_job_killTerminate a background Stata job by ID and return its final state, preserving the log so far to stop stuck imputations or accidental loops.
Instructions
Terminate a background Stata job by its id and return the final state. Prefer this over guessing: a stuck imputation or an accidental while loop is one call away from being stopped, and the log written so far is kept.
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": {
"jobId": "<jobId>"
},
"name": "stata_job_kill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory the job was submitted in (default: the server working directory). | |
| jobId | Yes | Job id from stata_job_submit. |