Fetch Bundle & Source Map
sourcemap_fetchDownload a JavaScript or CSS bundle and its source map, resolve the sourceMappingURL reference, and save both to an output directory for debugging production websites.
Instructions
Download a JavaScript or CSS bundle and its source map from a URL. Automatically resolves the sourceMappingURL reference (inline data URIs, external URLs, and conventional .map suffix fallback). Saves both files to the output directory. Use this as the first step when debugging a production website.
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": {
"url": "<url>"
},
"name": "sourcemap_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the JavaScript or CSS file to fetch | |
| outputDir | No | Directory to save the downloaded files (default: /tmp/srcmap) | /tmp/srcmap |