Skip to content

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.

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 ​

Grouplocal, on by default
TierCreate and build
Needsnone
Read onlyno
Destructiveno
Idempotentyes
Reaches the open webno

Inputs ​

InputTypeRequiredDefaultWhat it does
projectPathstringyesThe 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.
zipbooleannofalseAlso write a .zip.
zipSourcebooleannofalseAlso zip the source.
zipFilenamestringnoZip file name.
polyfillbooleannofalseCross-browser polyfill.
silentbooleannofalseSuppress build output.
mode"development" | "production" | "none"no"production"development: readable, source maps (with outDir); none: unset.
skipValidationbooleannofalseBuild despite manifest errors.
outDirstringnoBuild folder instead of dist (Extension.js 4.1.36+).
appNamestringnoSafari: app name.
bundleIdstringnoSafari: your reverse-DNS bundle id.
developmentTeamstringnoSafari: Apple team id; "" for ad-hoc.
macOsOnlybooleannotrueSafari: false adds iOS and iPadOS.
forceRegeneratebooleannofalseSafari: 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.