Import Sentry issues
import_sentry_issuesPull existing Sentry issues into Mushi's report queue by IDs or search query for pre-webhook triage. Deduped, idempotent; then triage created reports.
Instructions
Pull existing Sentry issues into Mushi's report queue: by issueIds (numeric ids or short ids like WEB-12, at most 10) or by a Sentry search query (default is:unresolved) within the project's configured Sentry project, limit 1-10. Each issue goes through the same path as a Sentry webhook delivery: deduped per issue, linked, classified. An issue already linked to a report answers linked and is never reopened. Returns { items: [{ input, issueId, shortId, outcome, reportId, error? }], created, linked, failed, indexing }. Write; idempotent; spends classification budget per new report. Needs the Sentry org slug, project slug and an auth token (event:read, project:read) in Integrations → Sentry. Use for issues that existed before the webhook was wired; then call triage_issue on a created report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many issues a query imports (1-10, default 5) | |
| query | No | Sentry search query within the configured Sentry project (default is:unresolved). Not with issueIds. | |
| issueIds | No | Sentry issue ids or short ids (e.g. "4501", "WEB-12"), at most 10 | |
| projectId | No | Project UUID. Defaults to configured project. (`project_id` is accepted too.) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | One entry per requested or matched issue | |
| failed | Yes | Issues that could not be imported | |
| linked | Yes | Report ids that already existed for these issues | |
| created | Yes | Report ids created by this import | |
| indexing | Yes | Whether stack-frame files were queued for codebase indexing |