Trace Web Source Location
trace_web_source_locationTrace a generated position in an exported website script back to its original source using a paired local source map, verifying SHA-256 and byte identities and returning resolved sources and positions.
Instructions
Trace one generated position in an exported website script through an explicitly paired local source map. Verifies manifest, selected script and map SHA-256/byte identities; returns every equal-position mapping, reported source/root, resolved source URL, embedded sourcesContent and original position inline. One-based lines and zero-based UTF-16 columns; greatest generated position <= requested across lines. Duplicate sources and generated-only mappings remain distinct. Caller-selected pairing does not establish deployment authenticity or execution. Regular maps and inline indexed sections only; external section URLs are unsupported. No network access or application execution; uses the pinned upstream codec in an owned Node process with private temporary files, independent 192 MiB old-generation heap and 20-second deadline. 4 MiB map, 32 MiB reply; complete evidence or actionable resource failure. Cleanup may extend the deadline.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_map": {
"url": "https://example.test/app.js.map",
"path": "/analysis/app.js.map"
},
"script_index": 0,
"manifest_path": "/analysis/scripts/manifest.json",
"generated_position": {
"line": 1,
"column": 25
}
},
"name": "trace_web_source_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_map | Yes | ||
| script_index | Yes | Zero-based index in manifest.scripts | |
| manifest_path | Yes | Absolute export_web_scripts manifest path | |
| generated_position | Yes |