extension_build
Build an extension into dist/<browser>/ on this machine, one browser a call.
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
Answers the output path, warnings and store review risks; extension_analyze reads what it wrote. Local only: extension_builds_read answers builds made on extension.dev, extension_builds_act rebuilds there. Safari needs macOS with Xcode.
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 | The extension's folder (manifest.json or package.json). | |
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 three groups and the session gates
- Install in your client
extension_create: Create a new extension from a template (extension_templates_read), plain JavaScript too; it may init git.extension_docs_search: Search the Extension.js and extension.dev docs (free) for a WebExtension API, a manifest key, a permission or a browser difference.extension_feature_plan: 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_templates_read: Browse the template catalog or read a template's files.