extension_analyze
Analyze a built extension in dist/<browser>: total and shippable size, entry points, permissions and store checks.
Quick start
What is in the built extension and is anything too big for the store?
Asked what ended up in the bundle, the agent builds and reads the output size by size.
How the agent uses it
Answers sizes, reviewRisks and storeReadiness for what extension_build wrote; extension_builds_read and extension_builds_act cover builds on extension.dev. On a dev build it adds a note to run extension_build first.
Reference
| Group | extras, off unless named: on with --features=local,platform,extras or --features=local,extras |
| Tier | See |
| Needs | the server started with extras in --features, as in --features=local,platform,extras |
| Read only | yes |
| Destructive | no |
| Idempotent | yes |
| Reaches the open web | no |
Inputs
| Input | Type | Required | Default | What it does |
|---|---|---|---|---|
projectPath | string | yes | The extension's folder (manifest.json or package.json). | |
browser | string | no | "chrome" | Browser build to analyze. |
format | "summary" | "tree" | "json" | no | "summary" | Accepted for compatibility; every value answers the same. |
When it fails
- The tool is missing from the client's list, or the call answers
E_TOOL_DISABLED. Theextrasgroup is off unless named. Start the server with--features=local,platform,extras, or--features=local,extraswithout the platform tools; see Server flags and telemetry.
Next
- MCP server: install, the three groups and the session gates
- Install in your client
extension_doctor: Diagnose a dev session leg by leg, each with its remediation.extension_dom_snapshot: Take a DOM snapshot of one open extension surface or targetId, or list what is open (listTargets on the debug port or listTabs).extension_inspect: Inspect a web page or targetId in a running session, first navigating a tab to url when given: its HTML, DOM, console and CSS selector counts, closed shadow roots too.extension_installed_read: List the extensions installed in a running session's browser, read-only; the project's own row has ownExtension:true.extension_logs_read: Read a dev session's console from every context in one timeline, or follow:true for live lines after the replayed ones.extension_manifest_validate: Validate manifest.json against each browser: per-browser errors, permissions the code calls but lacks, and buildBlocking errors.extension_screenshot: Take a .png of one surface, page or targetId in a live session; a closed surface is opened first, answering opened: true.extension_theme_verify: Verify a Chrome theme manifest, not an extension's: the colors Chrome paints and the keys it drops.