retrace_stack
Decode minified production stack traces to original TypeScript source files, lines, and columns using source maps.
Instructions
Decode a minified production stack trace back to original TypeScript source files, lines, and columns.
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": {
"stackTrace": "<stackTrace>",
"sourcemapDir": "<sourcemapDir>"
},
"name": "retrace_stack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stackTrace | Yes | The raw minified error stack trace (multi-line string) | |
| sourcemapDir | Yes | Directory containing .map files (or the dist directory where .js.map files live) |