Before you start
You need arun_id to retrieve artifacts. You get this when you run a task or agent.
Retrieve artifacts
Useget_run_artifacts with the run_id from your task or agent run:
Signed URLs expire after 24 hours. If a URL has expired, call
get_run_artifacts again to get fresh URLs. When running Skyvern locally, signed_url will be null. Access artifacts directly from your local file system instead.Filter by artifact type
To get only specific artifact types, passartifact_type:
Artifact types reference
Visual artifacts
These show you what the browser looked like at various points.
Debugging tip: If the run failed, start with
screenshot_final to see where it stopped, then watch the recording to see how it got there.
AI reasoning artifacts
These show you why the AI made each decision.
Debugging tip: If the AI did something unexpected, check
llm_prompt to see if your prompt was interpreted correctly, then llm_response_parsed to see what action it extracted.
About llm_response_rendered: Skyvern hashes URLs before sending them to the LLM to reduce token usage and avoid confusing the model with long query strings. The llm_response_parsed artifact contains these hashed placeholders (like {{_a1b2c3}}), while llm_response_rendered shows the same response with actual URLs substituted back in. Use this when you need to verify which exact URL the AI targeted.
Page structure artifacts
These show how Skyvern interpreted the page.
Debugging tip: If the AI couldn’t find an element, check
visible_elements_tree to see if it was detected. If not, the element might be in an iframe, dynamically loaded, or outside the viewport.
About the element tree variants: The visible_elements_tree is a JSON structure, while visible_elements_tree_in_prompt is the plain-text representation that gets embedded directly into the LLM prompt. The latter is often easier to read when debugging prompt issues. If you’re debugging iframe-related problems, visible_elements_id_frame_map shows which frame contains each element ID.
Log artifacts
These contain structured execution data.
Debugging tip:
skyvern_log is human-readable and shows the flow of execution. Start here for an overview before diving into specific artifacts.
Network artifacts
Debugging tip: The HAR file captures every network request. If a form submission failed, check the HAR to see if the request was sent and what the server responded.
File artifacts
Artifact response fields
Next steps
Troubleshooting Guide
Common issues and how to fix them
Error Handling
Map errors to custom codes for programmatic handling

