get_original_location
Map a generated code location (line and column) back to the original source using source maps, enabling debugging of bundled or transpiled code like TypeScript, Babel, webpack, or esbuild.
Instructions
Maps a generated code location back to the original source location using source maps. Essential for debugging bundled or transpiled code (TypeScript, Babel, webpack, esbuild, etc.).
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": {
"session_id": "<session_id>",
"script_id": "<script_id>",
"line_number": "<line_number>",
"column_number": "<column_number>"
},
"name": "get_original_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ID of the debugging session. | |
| script_id | Yes | ID of the script containing the generated code. Obtain from list_scripts or get_call_stack. | |
| line_number | Yes | Line number in the generated code (1-based). | |
| column_number | Yes | Column number in the generated code (0-based). |