Get Event Stacktrace
get_event_stacktraceRetrieve the full stack trace for a specific thread in a Sentry event, including non-crashed threads. Lists available threads when no match or multiple matches occur.
Instructions
Get the full stack trace (stacktrace) of one thread in a Sentry event, such as a non-crashed thread listed in the issue details. Lists the threads when the selector matches none or several. For an event with no threads, returns its event-level stacktrace.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"issueId": "<issueId>"
},
"name": "get_event_stacktrace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | Bypass cached reads. | |
| thread | No | Numeric thread ID or exact thread name from the issue details. Omit for Sentry's default: the crashed thread, else the first with a stack trace. | |
| eventId | No | An event ID in the issue, or `latest`. | latest |
| issueId | Yes | The issue short ID, e.g. `PROJECT-1Z43`. | |
| regionUrl | No | ||
| organizationSlug | No | The organization slug, from `find_organizations`. In `org/project` notation, the part before the slash. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread | Yes | The selected thread and its stacktrace. | |
| eventId | Yes | ||
| issueId | Yes | ||
| platform | Yes | The event platform, which sets how to read frames. | |
| selection | Yes | ||
| stacktrace | Yes | The event-level stacktrace, when the event has no threads but has a stack outside them, as on a captured message. | |
| threadCount | Yes | ||
| availableThreads | Yes | Every thread on the event, listed only when the `thread` selector matched none or several. | |
| organizationSlug | Yes |