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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| tail_lines | No |