shell_job_output
Read captured stdout and stderr from a background job to monitor progress; safe to call repeatedly without consuming the buffer. Pass the job ID and optional tail line count.
Instructions
Read the output captured so far from a background job.
Safe to call repeatedly while the job runs — it returns a snapshot and does not consume the buffer.
Args: job_id: Id returned by shell_start. tail_lines: Return only the last N lines of each stream. 0 means all.
Returns: running, exit_code (null while running), stdout, stderr, elapsed_s.
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": {
"job_id": "<job_id>"
},
"name": "shell_job_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| tail_lines | No |