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.
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
| Group | local, on by default |
| Tier | Run |
| Needs | none |
| Read only | no |
| Destructive | no |
| Idempotent | no |
| 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. |
port | number | no | Dev server port; 0 picks a free one. | |
noBrowser | boolean | no | false | Start the dev server without launching a browser. |
polyfill | boolean | no | false | Cross-browser polyfill. |
profile | string | no | Profile path; "false" reuses the real one. | |
startingUrl | string | no | URL opened on launch. | |
chromiumBinary | string | no | Chromium binary; browser still names the target family. | |
geckoBinary | string | no | Gecko binary; browser still names the target family. | |
host | string | no | Bind host (default 127.0.0.1). | |
publicHost | string | no | Host the browser dials, if not host. | |
extensions | array of string | no | Extra extensions to load. | |
headless | boolean | no | true: headless; false: a visible window; omitted: env decides. | |
appName | string | no | Safari: app name. | |
bundleId | string | no | Safari: your reverse-DNS bundle id. | |
developmentTeam | string | no | Safari: Apple team id; omitted, ad-hoc. | |
macOsOnly | boolean | no | true | Safari: false adds iOS and iPadOS. |
forceRegenerate | boolean | no | false | Safari: regenerate the Xcode project. |
enableExtension | boolean | no | false | Safari: enable it in Settings (Accessibility grant). |
replace | boolean | no | false | Replace this project's session; else refused. |
allowControl | boolean | no | true | Control channel for the bridge verbs. |
wait | boolean | no | true | Wait up to 45 s for ready. |
allowEval | boolean | no | false | Enable extension_eval; implies allowControl. |
idleMinutes | number | no | Idle 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.