analyze_bundle
Fetch a live page’s script chunks, save them locally, optionally de-obfuscate, and grep keywords; returns chunk paths and matches so agents can inspect the real animation code.
Instructions
Bundle forensics for a live page: fetch it once, download its script chunks (script tags, inline scripts, and modulepreload/preload-as-script hints; bounded: ≤40 chunks, 10MB, 1 request/second), save them locally, optionally de-obfuscate with webcrack if installed, and grep keywords across the code. Returns chunk paths + match lines so an agent can read the actual animation mechanism instead of guessing. Opt-in bundleIntel adds route, vendor, source-map presence and module-graph evidence; source maps are detected but never fetched, and default output keys are unchanged. Runs on URLs you are authorized to analyze — does not fetch awwwards.com.
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": "analyze_bundle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute page URL whose script chunks to inspect | |
| edges | No | static import graph over captured chunks | |
| keywords | No | grep these strings across chunks (e.g. class names, effect names) | |
| maxChunks | No | default 40 | |
| walkChunks | No | after the first pass, follow quoted same-origin .js refs inside fetched chunks and fetch up to 20 newly discovered ones (same budgets; adds seconds) | |
| bundleIntel | No | opt-in: quoted routes, vendor signatures, source-map presence (never fetched) and module graph; default output keys unchanged |