Get Mac command status
get_mac_jobReturns a command's state (running, exited or failed) and exit code, and once it has ended its stdout and stderr (first 64 KiB each, with a cursor when more follows). stream with cursor reads a chunk from any point, also while it runs. wait_seconds (up to 40) waits for it to end, so one call replaces a polling loop. It never runs the command again. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Byte offset to read from: next_cursor of the last read (default 0) | |
| job_id | Yes | Command job ID (job_…) returned by exec_mac. | |
| stream | No | Read this stream as a chunk from cursor, also while the command runs | |
| session_id | No | Mac session ID (ses_…). Optional: without it, the account's running Mac. | |
| wait_seconds | No | Wait up to this long (0-40) for a running command to finish, instead of polling. |