Analyze Web Bundle
analyze_web_bundleStatically analyzes captured JavaScript from a selected CDP page to derive chunk graphs, route/endpoint candidates, vendor fingerprints, and WebMCP metadata; scripts are parsed, not executed.
Instructions
Capture JavaScript source from one selected CDP page and statically derive a chunk graph, route and endpoint candidates, vendor fingerprints, page-declared WebMCP metadata, and optionally fetch source maps from the selected target origin or explicitly requested origins. JavaScript is parsed but never executed.
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": {
"target_id": "TARGET_ID_FROM_LIST_BROWSER_TARGETS",
"cdp_endpoint": "http://127.0.0.1:9222",
"observation_ms": 500,
"fetch_source_maps": false,
"include_storage_keys": false,
"include_script_sources": true,
"include_accessibility_text": false
},
"name": "analyze_web_bundle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | Exact CDP target identifier selected from the endpoint's target listing. | |
| cdp_endpoint | Yes | Literal loopback Chrome DevTools Protocol endpoint. | |
| observation_ms | No | ||
| allowed_origins | No | ||
| fetch_source_maps | No | ||
| include_console_text | No | Whether to include console text in the result. | |
| include_storage_keys | No | Whether to include storage keys in the result. | |
| include_script_sources | No | Whether to include script sources in the result. | |
| include_json_body_shapes | No | Whether to include json body shapes in the result. | |
| include_websocket_shapes | No | Whether to include websocket shapes in the result. | |
| include_accessibility_text | No | Whether to include accessibility text in the result. | |
| include_storage_fingerprints | No | Whether to include storage fingerprints in the result. |