Lookup Original Position
sourcemap_lookupResolve generated or minified code positions to original source file, line, and column from a source map; optionally return identifier names and surrounding source context.
Instructions
Find the original source position for a generated (minified) position. Given a line and column in the generated/minified file, returns the original source file, line, column, and optionally the identifier name. Use --context to also get surrounding lines of original source code. All positions are 0-based.
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": {
"file": "<file>",
"line": "<line>",
"column": "<column>"
},
"name": "sourcemap_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to a source map file (.map) | |
| line | Yes | Generated line number (0-based) | |
| column | Yes | Generated column number (0-based) | |
| context | No | Number of context lines to show around the matched position (default: 5) |