Agents > Oz CLI
Artifacts
Get metadata for and download files produced by an agent run using the `oz artifact` subcommands.
Use oz artifact to inspect uploaded artifacts and retrieve downloadable file content from outside a run. Writing a file in the sandbox doesn’t upload it. For plans, media-sharing choices, and linked outputs, see Finding and sharing artifacts.
When to use artifacts
Section titled “When to use artifacts”Use artifacts when you need to retrieve files an agent produced after a run completes, without re-running the agent or scraping the conversation output.
- Hand-offs between runs - A scheduled agent produces a report; a follow-up workflow downloads and processes it.
- Local inspection - Pull a generated file (HTML, image, CSV) onto your laptop to review.
- CI integration - Fetch an agent-produced build artifact from a pipeline step that runs after the agent finishes.
Artifacts are referenced by an artifact UID. You can find UIDs in the agent’s run detail view, in the JSON returned by oz run get, or in the response from the Warp Platform API.
oz artifact get
Section titled “oz artifact get”Print metadata for an artifact without downloading it.
oz artifact get <ARTIFACT_UID>The output describes the artifact (file name, content type, size, the run or conversation it’s associated with, and the description supplied when it was uploaded). Use --output-format json for a structured response that’s easy to parse from a script:
oz artifact get <ARTIFACT_UID> --output-format jsonThis command is useful for confirming an artifact exists and inspecting its size before you decide to download it.
oz artifact download
Section titled “oz artifact download”Download the file contents of an artifact.
oz artifact download <ARTIFACT_UID> [--out <PATH>]<ARTIFACT_UID>- The UID of the artifact to download. Required positional argument.--out <PATH>(-o) - Write the downloaded artifact to a specific file path. When omitted, the file is written to the current directory using the artifact’s stored file name.
Examples
Section titled “Examples”Download an artifact to the current directory, preserving its original name:
oz artifact download <ARTIFACT_UID>Download to a specific path:
oz artifact download <ARTIFACT_UID> --out ./reports/nightly.htmlBefore downloading in a pipeline, inspect a known run with oz run get RUN_ID --output-format json. Replace RUN_ID with the run you intend to inspect. Select the intended file’s data.artifact_uid from its FILE entry, or the intended screenshot’s UID from its SCREENSHOT entry.
Don’t download the first artifact blindly: it might be a plan or an external link rather than the report you need. For empty lists and type-specific retrieval, follow the artifact API workflow.
Related pages
Section titled “Related pages”- Warp Platform API - Retrieve artifacts programmatically over HTTP
- Scheduled Agents - Common producer of recurring artifacts that downstream tooling consumes