Skip to main content
Export one persisted artifact as JSON, compact JSON, or a markdown download envelope
Audience: developers choosing a structured handoff or markdown download for one persisted artifact.

Coverage and source scope

Returns the saved artifact with its manifest for json or compact_json. With format=markdown, the response is a download envelope rather than inline markdown; follow its download details. Compact JSON is intentionally reduced and may truncate large content or arrays.

Canonical metadata

  • artifactId
  • format
  • manifest
  • artifact
  • download

Example request

Example response

Format selection

Omit format or use format=json for the stored artifact object and manifest. format=markdown returns a download envelope rather than inline markdown. format=compact_json returns a reduced representation: large contentMd or content strings are truncated, snippets are shortened, and arrays are capped, so it is not a lossless archive format.

Errors

A missing, inaccessible, or failed export returns 404 artifact_export_failed.

Give this prompt to your agent

Failure posture

  • use full JSON or download when a workflow needs lossless saved content
  • label compact JSON as reduced when passing it to a reviewer
  • retain the manifest and artifact ID with every export