extension_build
Build the extension on this machine into dist/<browser>/; never for sharing (extension_builds).
Quick start
Build this extension for Chrome and Firefox
Asked to build for two browsers, the agent builds and reads the output folder by folder.
How the agent uses it
Refuses a dist a dev session serves unless outDir.
Reference
| Group | local, on by default |
| Tier | Create and build |
| Needs | none |
| Read only | no |
| Destructive | no |
| Idempotent | yes |
| Reaches the open web | no |
Inputs
| Input | Type | Required | Default | What it does |
|---|---|---|---|---|
projectPath | string | yes | Extension project root | |
browser | "chrome" | "chromium" | "edge" | "brave" | "opera" | "vivaldi" | "yandex" | "firefox" | "waterfox" | "librewolf" | "zen" | "floorp" | "safari" | "chromium-based" | "gecko-based" | "firefox-based" | "webkit-based" | no | "chrome" | Target browser; *-based pairs with chromiumBinary or geckoBinary. |
zip | boolean | no | false | Also write a .zip. |
zipSource | boolean | no | false | Also zip the source. |
zipFilename | string | no | Zip file name. | |
polyfill | boolean | no | false | Cross-browser polyfill. |
silent | boolean | no | false | Suppress build output. |
mode | "development" | "production" | "none" | no | "production" | development: readable, source maps (with outDir); none: unset. |
skipValidation | boolean | no | false | Build despite manifest errors. |
outDir | string | no | Build folder instead of dist (Extension.js 4.1.36+). | |
appName | string | no | Safari: app name. | |
bundleId | string | no | Safari: your reverse-DNS bundle id. | |
developmentTeam | string | no | Safari: Apple team id; "" for ad-hoc. | |
macOsOnly | boolean | no | true | Safari: false adds iOS and iPadOS. |
forceRegenerate | boolean | no | false | Safari: regenerate the Xcode project. |
Next
- MCP server: install, the two groups and the session gates
- Install in your client
extension_add_feature: Plan the surface before adding an options page, a popup, a side panel, a content script, a devtools panel, a new tab page or a background script.extension_create: Create an extension project from a template (extension_templates); it may init git.extension_docs_search: Find the docs page to cite before answering about a WebExtension API, a manifest key, a permission or a browser difference.extension_templates: Browse the template catalog or read a template's files.