Trace Web Module Imports
trace_web_module_importsTrace one exported website script's outgoing native ES imports/re-exports from a local manifest, optionally with import-map context, and return resolved URLs, source positions, or exact errors.
Instructions
Trace one exported website script's outgoing native ES imports/re-exports, using exact URL and optional selected import-map context. Reads a local export_web_scripts manifest and verifies the selected source's SHA-256/size; returns source positions, native resolved URLs or exact errors, every matching captured candidate and explicit unknown execution. Query/fragment identities are preserved. Computed imports and bundler IDs remain unknown. Select importer_url for unknown inline/document-base context. Caller-supplied Chromium executes only a trusted REA resolver stub in an owned context with page requests locally fulfilled/blocked; no captured application execution or asset refetch. Requires absolute REA_BROWSER_EXECUTABLE for literal imports. 32 MiB manifest, 16 MiB source, 4 MiB map and 20-second native deadline; 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": {
"import_map": {
"path": "/analysis/import-map.json",
"base_url": "https://example.test/app/"
},
"script_index": 0,
"manifest_path": "/analysis/exported-scripts/manifest.json"
},
"name": "trace_web_module_imports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| import_map | No | ||
| importer_url | No | Explicit HTTP(S) module URL; useful when captured inline/base context is unknown | |
| script_index | Yes | Zero-based index in manifest.scripts | |
| manifest_path | Yes | Absolute path to an export_web_scripts manifest |