Read a background job log
stata_job_logReturn the tail of a running Stata background job log to check progress, counts, current tables, or long steps without waiting for the job to finish.
Instructions
Return the tail of the log a background job is writing (Stata batch writes .log next to the do-file). Use it to see progress —counts, the current table, a long imputation step —while the job is still running.
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_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory the job was submitted in (default: the server working directory). | |
| tail | No | Characters from the end (default 8000). | |
| jobId | Yes | Job id from stata_job_submit. |