Export Web Scripts
export_web_scriptsExports retained JavaScript bytes from saved page-inspection or browser-scenario JSON into a new directory, writing scripts and a digest-verified manifest for later code analysis without refetching.
Instructions
Export JavaScript bytes already retained in one local inspect_web_page or capture_browser_scenario JSON capture (normalized result or complete Evidence). Writes scripts and a digest-verified manifest into an absent absolute output_directory. Returns all source URLs, script or transaction/event references, unavailable states, and an analysis_input for analyze_javascript_application when any bytes were exported. Include script sources in inspect_web_page or select capture.network.response_body in scenarios. No refetch or execution. Safe unambiguous URL layouts preserve relative module paths; versions, query variants, inline scripts, and path collisions are isolated with explicit resolution limitations.
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": {
"capture_path": "/analysis/capture.json",
"output_directory": "/analysis/exported-scripts"
},
"name": "export_web_scripts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capture_path | Yes | Absolute filesystem path to saved inspect_web_page or capture_browser_scenario JSON, normalized result or complete Evidence | |
| output_directory | Yes | Absolute absent filesystem directory for verified scripts and manifest; parent directory must exist |