Get Play Status
get_play_statusGet the current state of a play, with per-step results and log that fill in as it progresses, optionally waiting for it to finish. After play_script, call this with waitSeconds instead of sleeping between polls; the results are complete once running is false. Each step's has-flags (hasBody, hasLog, and their siblings) say which get_step_detail parts would return something for that step, so drill down only where a flag is true. On a Playwright run the whole runner log belongs to the command step that ran the spec file — hasLog points there. A step's screenshotKeys are in capture order; a Playwright step lists the script's own page.screenshot calls in order, with the runner's final screenshot of the test last.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ||
| scriptRunId | Yes | The script run id returned by play_script. | |
| waitSeconds | No | Optional: wait up to this many seconds (capped at 30) and return the moment the play reaches a terminal state. On expiry it returns the current status rather than an error, so just call again for a longer run. Omit for an immediate read. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | Yes | ||
| steps | Yes | ||
| errors | No | ||
| status | Yes | ||
| running | Yes | ||
| startedAt | No | ||
| finishedAt | No | ||
| scriptRunId | Yes | ||
| dashboardUrl | Yes |