agentskit.js
ToolsIntegrations

sentry

Sentry — search org / project issues and resolve them. Bearer auth-token.

import { sentry } from '@agentskit/tools/integrations'

const tools = sentry({
  authToken: process.env.SENTRY_AUTH_TOKEN!,
  organization: 'my-org',
})

Bundled: sentry(config) returns both sub-tools. Calls Sentry API v0 at https://sentry.io/api/0.

#Sub-tools

NamePurpose
sentry_search_issuesSearch issues across an org or a specific project
sentry_resolve_issueMark an issue as resolved by numeric ID or shortId

#Schema

#sentry_search_issues

ParameterTypeRequiredDescription
projectstringnoProject slug. Omit to search the whole org
querystringnoSentry search query, e.g. is:unresolved level:error
limitnumbernoMax results (default 25)

Returns: id (shortId), title, status, level, url, lastSeen, count.

#sentry_resolve_issue

ParameterTypeRequiredDescription
issueIdstringyesNumeric issue ID or shortId (e.g. PROJ-123)

#Example — on-call triage agent

import { createRuntime } from '@agentskit/runtime'
import { sentry } from '@agentskit/tools/integrations'

const runtime = createRuntime({
  adapter,
  systemPrompt: 'You triage Sentry issues. List unresolved errors, summarize root causes, and resolve ones that are already fixed.',
  tools: sentry({
    authToken: process.env.SENTRY_AUTH_TOKEN!,
    organization: 'my-org',
  }),
})

await runtime.run('Find all unresolved error-level issues in project api-server from the last 24 hours.')

#Security

  • Env var required: SENTRY_AUTH_TOKEN — a Sentry User Auth Token (Settings → Auth Tokens). Use an internal integration token in CI environments.
  • Scopes required: event:read for searching; event:write for resolving. Restrict to the minimum scope needed.
  • sentry_resolve_issue mutates issue state — gate via HITL if agents are operating autonomously in production.
  • Sentry enforces rate limits per organization; check your plan's API quota before running high-frequency polling agents.

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page

Ask the docs

Ask anything about AgentsKit. Answers come from the docs corpus via OpenRouter free-tier models. Rate limited per IP.