Skip to content

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.

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 ​

Groupextras, off unless named: on with --features=local,platform,extras or --features=local,extras
TierRun
Needsthe server started with extras in --features, as in --features=local,platform,extras; a live dev or start session
Read onlyyes
Destructiveno
Idempotentyes
Reaches the open webno

Inputs ​

InputTypeRequiredDefaultWhat it does
projectPathstringyesThe extension's folder (manifest.json or package.json).
browserstringnoRunning session's browser; needed when several run.
timeoutMsnumberno45000Wait budget in ms, clamped 1000-50000; on starting, call again.
timeoutnumbernoDeprecated alias of timeoutMs.
for"ready" | "rebuild"no"ready"rebuild: the next compile and reload after an edit.
sincestringnorebuild: ISO time a compile must follow.

When it fails ​

  • The call is refused because no session is live. Start one with extension_dev or extension_start and call again.
  • The tool is missing from the client's list, or the call answers E_TOOL_DISABLED. The extras group is off unless named. Start the server with --features=local,platform,extras, or --features=local,extras without 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.