Skip to content

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.

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 ​

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

Inputs ​

InputTypeRequiredDefaultWhat it does
projectPathstringyesExtension 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.
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 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.