Resolve Generated Position
sourcemap_resolveResolve an original source file, line, and column to the corresponding generated or minified position using a source map for deployed-code debugging.
Instructions
Reverse lookup: find the generated (minified) position for an original source position. Given a source file, line, and column, returns the generated line and column. 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>",
"source": "<source>",
"line": "<line>",
"column": "<column>"
},
"name": "sourcemap_resolve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to a source map file (.map) | |
| line | Yes | Original line number (0-based) | |
| column | Yes | Original column number (0-based) | |
| source | Yes | Original source filename (as it appears in the source map) |