stac_get_artifact
Download a stored artifact (preview or full-resolution) to a local file, returning the file path for direct viewing or GIS analysis.
Instructions
Retrieve a stored artifact and save it as a local file for viewing.
Downloads the artifact bytes from the artifact store and writes them to a local file. Returns the file path so the image can be opened in any viewer.
Args: artifact_ref: Artifact ID from a previous download tool call (the artifact_ref or preview_ref value) output_mode: Response format - "json" (default) or "text"
Returns: JSON with file_path, mime type, size, and artifact metadata
Tips for LLMs: - Use the preview_ref (PNG) from download results for quick viewing - Use the artifact_ref (GeoTIFF) for full-resolution geospatial data - The file is saved to a temporary directory and can be opened with any image viewer or GIS application - PNG files can be opened with: open (macOS) - GeoTIFF files can be opened with QGIS, rasterio, or similar
Example: result = await stac_get_artifact( artifact_ref="a7c666e6555548aea2d5351cc65bf173" ) # Returns: {"file_path": "/tmp/stac_artifacts/a7c666...png", ...}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_mode | No | json | |
| artifact_ref | Yes |