Job status
job_statusCheck a background command's status and exit code after waiting up to 50 seconds, avoiding tight polling. Use tail lines to confirm progress and full logs for complete output.
Instructions
Check the status of a background command started by run_command with wait=. Returns status (running/completed/timeout/failed), exit_code and duration. DO NOT poll in a tight loop. Pass waitSec (1-50): the server holds the answer until the job finishes or the time runs out, so one call replaces dozens. Pass tailLines to see the last lines of output and confirm real progress. Use job_output for the full log.
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": "job_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Short human-readable explanation (1 line, in the user's language) of what you are about to do and why. Shown to the user on the approval card. Always provide when calling mutating tools. | |
| agent | No | Short consistent identifier or display name of this agent (e.g. 'Claude · Лендинг', 'Тесты', 'Мой агент'). Used to separate tasks and route tray messages when multiple agents work in parallel. | |
| jobId | Yes | ||
| waitSec | No | ||
| tailLines | No |