Get Step Detail
get_step_detailRead the payloads get_play_status leaves out — response bodies, headers, captured values, console messages, network activity, page HTML, logs — for one or more steps of a play, choosing the parts per call. Ask for several steps at once: a failing request and the earlier step that captured the token it used is one call. Use this instead of adding a validator or code block to the script just to echo a response back to yourself. Parts are bot-type-shaped, and asking for a part a run has no source for returns an error naming what it does have.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parts | Yes | The parts to return: body, headers, captured, console, network, network_full, html, or log. Required, so a drill-down never returns more than you asked for. 'network' ranks the resources (failures, non-2xx, and the slowest 20) with the totals beside them; 'network_full' returns every one. | |
| selector | No | Optional CSS selector, for the 'html' part only. Without it, html returns an outline of the page's anchorable elements with a suggested selector for each — ask for that first when you don't know what to target. With it, html returns the matching elements' outerHTML. | |
| projectId | Yes | ||
| scriptRunId | Yes | The script run id returned by play_script. | |
| stepIndexes | Yes | The step indexes to drill into, starting at 1, as reported by get_play_status. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes |