/snapshots
- `snapshots upload` scans a folder for PNG/JPEG images (skipping hidden files), uploads each to Sentry's object store — images already present are skipped by content hash — and creates a snapshot. **Sentry SaaS only.** A companion `<image>.json` sidecar adds per-image metadata;
> /plugin marketplace add getsentry/toolkit> /plugin install sentry-mcp@sentry-mcp
Command definition
snapshots.mdImportant Notes
- `snapshots upload` scans a folder for PNG/JPEG images (skipping hidden files),
uploads each to Sentry's object store — images already present are skipped by content hash — and creates a snapshot. **Sentry SaaS only.** A companion `<image>.json` sidecar adds per-image metadata; `--all-image-file-names` (or `--all-image-file-names-file`) lists the full suite for selective uploads. Each image must be at most 40,000,000 pixels. Git metadata is auto-collected in CI (see `build upload`); a `--pr-number` requires a resolvable base SHA.
- `snapshots diff` compares two local image directories (PNG/JPEG) perceptually
— anti-aliasing aware, with a per-pixel `--threshold` (0.0–1.0) — and writes a PNG diff mask per changed image. It makes **no network requests**. Use `--fail-on-diff` to exit non-zero when any images changed/added/removed, and `--selective` to treat images missing from head as skipped rather than removed.
- `snapshots download` fetches baseline snapshot images from Sentry's preprod
system and extracts them to a local directory. **Sentry SaaS only.**
- Provide exactly one of `--snapshot-id` (a direct artifact ID) or `--app-id`
(resolves the latest baseline). `--branch` only applies with `--app-id`.
- With org auth tokens, resolving by `--app-id` requires `--project` (a project
ID or slug).
- If the downloadable archive has not been built yet, the command triggers a
build and waits for it (up to 5 minutes).
- Images are extracted to `./snapshots-base/` by default; override with
`--output`.
- The organization is resolved from `--org`, `SENTRY_ORG`, config defaults, or a
detected DSN.
Read more
Important Notes
- `snapshots upload` scans a folder for PNG/JPEG images (skipping hidden files),
uploads each to Sentry's object store — images already present are skipped by content hash — and creates a snapshot. **Sentry SaaS only.** A companion `<image>.json` sidecar adds per-image metadata; `--all-image-file-names` (or `--all-image-file-names-file`) lists the full suite for selective uploads. Each image must be at most 40,000,000 pixels. Git metadata is auto-collected in CI (see `build upload`); a `--pr-number` requires a resolvable base SHA.
- `snapshots diff` compares two local image directories (PNG/JPEG) perceptually
— anti-aliasing aware, with a per-pixel `--threshold` (0.0–1.0) — and writes a PNG diff mask per changed image. It makes **no network requests**. Use `--fail-on-diff` to exit non-zero when any images changed/added/removed, and `--selective` to treat images missing from head as skipped rather than removed.
- `snapshots download` fetches baseline snapshot images from Sentry's preprod
system and extracts them to a local directory. **Sentry SaaS only.**
- Provide exactly one of `--snapshot-id` (a direct artifact ID) or `--app-id`
(resolves the latest baseline). `--branch` only applies with `--app-id`.
- With org auth tokens, resolving by `--app-id` requires `--project` (a project
ID or slug).
- If the downloadable archive has not been built yet, the command triggers a
build and waits for it (up to 5 minutes).
- Images are extracted to `./snapshots-base/` by default; override with
`--output`.
- The organization is resolved from `--org`, `SENTRY_ORG`, config defaults, or a
detected DSN.
This repository contains the Sentry CLI, the Sentry MCP server, and shared packages. For the CLI, see the CLI guide and the published documentation at . The documentation index covers both products and shared contributor guidance.
Other commands on toolkit.
alert
CommandTriggers take `alertThreshold`, an optional `label` (`critical` or `warning`), `resolveThreshold`, and `thresholdType` (`0`…
api
CommandEndpoints are relative to `/api/0/` — the prefix is added automatically. Absolute HTTP(S) Sentry URLs also work; their origin is…
attribute
CommandAttributes are the typed key-value data attached to spans, logs, and metric samples. Their keys can be passed to other commands…
auth
CommandBare `sentry auth` logs in when you're logged out and shows status when you're already authenticated. `sentry auth login` always…
build
Command- `build upload` supports **Android APK/AAB** and **iOS XCArchive/IPA**. An XCArchive is a directory; an IPA is converted to an…
More commands from other plugins.
build
CommandImplement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

