Skyvern: Get artifacts for a run
Skyvern artifacts.getRunArtifacts: arguments, response, policy and SDK examples.
← Artifacts operations · Get started
Operation skyvern.get_run_artifacts_v1_runs_run_id_artifacts_get
Provider route: GET /v1/runs/{run_id}/artifacts. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/skyvern with npm, or alter-sdk-skyvern with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { SkyvernIntegration } from "@alter-ai/skyvern";
async function execute(input: Parameters<SkyvernIntegration["artifacts"]["getRunArtifacts"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new SkyvernIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.artifacts.getRunArtifacts(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_skyvern import SkyvernIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = SkyvernIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.artifacts.get_run_artifacts(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.run_id | string | Required within parent | The id of the task run or the workflow run. |
query | object | Optional | Additional keys: not allowed |
query.artifact_type | JSON | Optional | |
query.artifact_type (anyOf 1) | array | Alternative | |
query.artifact_type (anyOf 1)[] | Model | Each item | Expand Get artifacts for a run — request body — query artifact type array item |
query.artifact_type (anyOf 2) | null | Alternative |
Referenced models: Get artifacts for a run — request body — query artifact type array item
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | array | Root | |
$[] | Model | Each item | Expand Get artifacts for a run — response body — item |
Referenced models: Get artifacts for a run — response body — item
Schemas
Section titled “Schemas”Get artifacts for a run — request body — query artifact type array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | One of: recording, audio, session_replay, eval_score, eval_trajectory, eval_rubrics, browser_console_log, browser_session_action_log, skyvern_log, skyvern_log_raw, screenshot, screenshot_llm, screenshot_action, screenshot_final, screenshot_proxy, screenshot_pre_submit, llm_prompt, llm_request, llm_response, llm_response_parsed, llm_response_rendered, visible_elements_id_css_map, visible_elements_id_frame_map, visible_elements_tree, visible_elements_tree_trimmed, visible_elements_tree_in_prompt, hashed_href_map, visible_elements_id_xpath_map, html, html_scrape, html_action, html_pre_submit, trace, har, script_file, pdf, step_archive, task_archive, download, unknown |
Get artifacts for a run — response body — item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
ai_suggestion_id | JSON | Optional | |
ai_suggestion_id (anyOf 1) | string | Alternative | |
ai_suggestion_id (anyOf 2) | null | Alternative | |
archived | boolean | Optional | Default: false |
artifact_id | string | Required within parent | |
artifact_type | Model | Required within parent | Expand Get artifacts for a run — response body — item artifact type |
browser_session_id | JSON | Optional | |
browser_session_id (anyOf 1) | string | Alternative | |
browser_session_id (anyOf 2) | null | Alternative | |
bundle_key | JSON | Optional | |
bundle_key (anyOf 1) | string | Alternative | |
bundle_key (anyOf 2) | null | Alternative | |
checksum | JSON | Optional | |
checksum (anyOf 1) | string | Alternative | |
checksum (anyOf 2) | null | Alternative | |
created_at | string | Required within parent | The creation datetime of the task. |
file_size | JSON | Optional | |
file_size (anyOf 1) | JSON | Alternative | |
file_size (anyOf 1) (anyOf 1) | integer | Alternative | |
file_size (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
file_size (anyOf 2) | null | Alternative | |
modified_at | string | Required within parent | The modification datetime of the task. |
observer_cruise_id | JSON | Optional | |
observer_cruise_id (anyOf 1) | string | Alternative | |
observer_cruise_id (anyOf 2) | null | Alternative | |
observer_thought_id | JSON | Optional | |
observer_thought_id (anyOf 1) | string | Alternative | |
observer_thought_id (anyOf 2) | null | Alternative | |
organization_id | string | Required within parent | |
run_id | JSON | Optional | |
run_id (anyOf 1) | string | Alternative | |
run_id (anyOf 2) | null | Alternative | |
signed_url | JSON | Optional | |
signed_url (anyOf 1) | string | Alternative | |
signed_url (anyOf 2) | null | Alternative | |
step_id | JSON | Optional | |
step_id (anyOf 1) | string | Alternative | |
step_id (anyOf 2) | null | Alternative | |
task_id | JSON | Optional | |
task_id (anyOf 1) | string | Alternative | |
task_id (anyOf 2) | null | Alternative | |
uri | string | Required within parent | |
workflow_run_block_id | JSON | Optional | |
workflow_run_block_id (anyOf 1) | string | Alternative | |
workflow_run_block_id (anyOf 2) | null | Alternative | |
workflow_run_id | JSON | Optional | |
workflow_run_id (anyOf 1) | string | Alternative | |
workflow_run_id (anyOf 2) | null | Alternative |
Referenced models: Get artifacts for a run — response body — item artifact type
Get artifacts for a run — response body — item artifact type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | Known values: recording, audio, session_replay, eval_score, eval_trajectory, eval_rubrics, browser_console_log, browser_session_action_log, skyvern_log, skyvern_log_raw, screenshot, screenshot_llm, screenshot_action, screenshot_final, screenshot_proxy, screenshot_pre_submit, llm_prompt, llm_request, llm_response, llm_response_parsed, llm_response_rendered, visible_elements_id_css_map, visible_elements_id_frame_map, visible_elements_tree, visible_elements_tree_trimmed, visible_elements_tree_in_prompt, hashed_href_map, visible_elements_id_xpath_map, html, html_scrape, html_action, html_pre_submit, trace, har, script_file, pdf, step_archive, task_archive, download, unknown |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: skyvern.get_run_artifacts_v1_runs_run_id_artifacts_get. Catalog operation: get_run_artifacts_v1_runs__run_id__artifacts_get. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.