Skip to content

extension_dev ​

Run the extension in a browser with a dev build and hot reload while it is edited.

Quick start ​

Run my extension in Chrome and let me act on it

Asked to run the extension, the agent starts the session and the browser opens with it loaded.

Asked to run the extension, the agent starts the session and the browser opens with it loaded.

How the agent uses it ​

Answers ready.status; ready.status "ready" means nothing else to call. extension_start runs the production build instead; extension_open shows a surface, extension_reload forces a reload, extension_wait waits for a rebuild and extension_stop ends the session. Safari needs macOS.

Reference ​

Grouplocal, on by default
TierRun
Needsnone
Read onlyno
Destructiveno
Idempotentno
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.
portnumbernoDev server port; 0 picks a free one.
noBrowserbooleannofalseStart the dev server without launching a browser.
polyfillbooleannofalseCross-browser polyfill.
profilestringnoProfile path; "false" reuses the real one.
startingUrlstringnoURL opened on launch.
chromiumBinarystringnoChromium binary; browser still names the target family.
geckoBinarystringnoGecko binary; browser still names the target family.
hoststringnoBind host (default 127.0.0.1).
publicHoststringnoHost the browser dials, if not host.
extensionsarray of stringnoExtra extensions to load.
headlessbooleannotrue: headless; false: a visible window; omitted: env decides.
appNamestringnoSafari: app name.
bundleIdstringnoSafari: your reverse-DNS bundle id.
developmentTeamstringnoSafari: Apple team id; omitted, ad-hoc.
macOsOnlybooleannotrueSafari: false adds iOS and iPadOS.
forceRegeneratebooleannofalseSafari: regenerate the Xcode project.
enableExtensionbooleannofalseSafari: enable it in Settings (Accessibility grant).
replacebooleannofalseReplace this project's session; else refused.
allowControlbooleannotrueControl channel for the bridge verbs.
waitbooleannotrueWait up to 45 s for ready.
allowEvalbooleannofalseEnable extension_eval; implies allowControl.
idleMinutesnumbernoIdle minutes before it ends itself; 0 never; default 30 headless.

Next ​

  • MCP server: install, the three groups and the session gates
  • Install in your client
  • extension_start: Run the PRODUCTION build in a browser, as it ships; no hot reload or extension_logs_read.
  • extension_stop: Stop a dev or start session and its browser.
  • extension_try: Run a published extension.dev build in a fresh profile on this machine, no install, and screenshot it.
  • extension_wait: Wait for a session to be ready, or for: "rebuild" for the next compile after an edit.