extension_wait
Wait for a session to be ready, or for: "rebuild" for the next compile after an edit.
Quick start
Wait until the dev session is ready, then tell me the ports
Asked to start without waiting and then report the ports, the agent waits for ready and names every port the session bound.
How the agent uses it
Needed only after wait:false, a ready.status not "ready", or noBrowser from extension_dev or extension_start. Answers port, controlPort and the browser debugging port (cdpPort or rdpPort). extension_reload forces a reload, extension_open shows a surface, extension_stop ends the session.
Page text in the answer
Part of this tool's answer is text a web page or the extension wrote. The server fences it between <untrusted-data-ID> and </untrusted-data-ID> with a fresh random ID per call, named in untrusted.boundary. A fence is a signal to the model, not a gate: pair it with --no-ship when the agent reads pages you do not trust. See Server flags and telemetry.
Reference
| Group | extras, off unless named: on with --features=local,platform,extras or --features=local,extras |
| Tier | Run |
| Needs | the server started with extras in --features, as in --features=local,platform,extras; a live dev or start session |
| Read only | yes |
| 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 | string | no | Running session's browser; needed when several run. | |
timeoutMs | number | no | 45000 | Wait budget in ms, clamped 1000-50000; on starting, call again. |
timeout | number | no | Deprecated alias of timeoutMs. | |
for | "ready" | "rebuild" | no | "ready" | rebuild: the next compile and reload after an edit. |
since | string | no | rebuild: ISO time a compile must follow. |
When it fails
- The call is refused because no session is live. Start one with
extension_devorextension_startand call again. - The tool is missing from the client's list, or the call answers
E_TOOL_DISABLED. Theextrasgroup is off unless named. Start the server with--features=local,platform,extras, or--features=local,extraswithout the platform tools; see Server flags and telemetry.
Next
- MCP server: install, the three groups and the session gates
- Install in your client
extension_dev: Run the extension in a browser with a dev build and hot reload while it is edited.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.