Skip to content

extension_wait ​

Wait for a session to be ready, or for: "rebuild" after an edit; only after wait:false, a ready.status not "ready", or noBrowser; answers port, controlPort and cdpPort or rdpPort.

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 ​

A page condition is extension_eval until; never sleep in a shell.

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 ​

Grouplocal, on by default
TierRun
Needsa live dev or start session
Read onlyyes
Destructiveno
Idempotentyes
Reaches the open webno

Inputs ​

InputTypeRequiredDefaultWhat it does
projectPathstringyesExtension project root
browserstringnoSession browser; required when several run.
timeoutMsnumberno45000Wait budget in ms, default 45000, clamped 1000-50000.
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 ​

Next ​

  • MCP server: install, the two groups and the session gates
  • Install in your client
  • extension_dev: Run the extension while you edit it (dev build, hot reload, browser): the first call for "run my extension".
  • extension_start: Run the PRODUCTION build in a browser (extension_dev is for writing code); no hot reload or extension_logs.
  • extension_stop: Stop a dev or start session, naming the server and browser pid it ended.
  • extension_try: Run a published extension.dev build in a fresh profile on this machine, no install, and screenshot it; warn the person about what it can reach.