Skip to content

extension_assert ​

Run a test stage on an extension_dev or extension_start session: pass, fail, not ready (a precondition) or inconclusive per expectation.

Quick start ​

Check that the worker booted, the popup rendered and the console is clean

Asked whether the extension works, the agent states expectations and reads one verdict each.

Asked whether the extension works, the agent states expectations and reads one verdict each.

How the agent uses it ​

Debug-port checks: extension_start allowControl:true; content-script-injected and console-errors-empty: extension_dev only.

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
TierTest
Needsa live dev or start session
Read onlyno
Destructiveno
Idempotentyes
Reaches the open webno

Inputs ​

InputTypeRequiredDefaultWhat it does
projectPathstringyesProject root of a running session: extension_dev, extension_start, or npx extension dev|start by hand
expectarray of objectyesEach { assert: <id>, ...args }: background-worker-booted; surface-rendered {surface, selector?, minNodes?}; content-script-injected {url}; storage-key-present {key, area?, equals?, context?}; console-errors-empty {context?, since?, ignore?}; page-world-clean {url, pageGlobals?}; no-outside-requests {allow?, durationMs?}.
browserstringnoSession browser; required when several run.
timeoutnumbernoTimeout ms (default 30000; Firefox 10000; debug port 15000).

When it fails ​

Next ​