Skip to content
Development
Command

/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;

From plugin
toolkit
97342 skills1 agent42 commands2 MCP
> /plugin marketplace add getsentry/toolkit
> /plugin install sentry-mcp@sentry-mcp

Command definition

snapshots.md

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.

Read more
@getsentry
Ships withtoolkit

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.

9731 skill1 agent2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
973
Star history of getsentry/sentry-mcp on GitHub, a chart by star-history.com

Other commands on toolkit.

alert

alert

Command

Triggers take `alertThreshold`, an optional `label` (`critical` or `warning`), `resolveThreshold`, and `thresholdType` (`0`…

@getsentry@getsentryInstall Command
api

api

Command

Endpoints are relative to `/api/0/` — the prefix is added automatically. Absolute HTTP(S) Sentry URLs also work; their origin is…

@getsentry@getsentryInstall Command
attribute

attribute

Command

Attributes are the typed key-value data attached to spans, logs, and metric samples. Their keys can be passed to other commands…

@getsentry@getsentryInstall Command
auth

auth

Command

Bare `sentry auth` logs in when you're logged out and shows status when you're already authenticated. `sentry auth login` always…

@getsentry@getsentryInstall Command
build

build

Command

- `build upload` supports **Android APK/AAB** and **iOS XCArchive/IPA**. An XCArchive is a directory; an IPA is converted to an…

@getsentry@getsentryInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command