Get a script job's result
get_script_jobFetch the outcome of a run_script that did not finish inline. Waits for it rather than returning immediately, so one call is usually enough — set wait_seconds to how long you are willing to hold.
Returns { job_id, status, result?, error? }. status is processing, completed or failed; result carries the same { ok, result, stdout, ops } the inline reply would have. The script runs to completion whether or not you poll.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | From the run_script reply. | |
| wait_seconds | No | How long to wait for completion before answering, default 45s. Pass 0 for an immediate status check. |