extension_open
Open an extension surface or a url in a session, or replay the toolbar click, a menu item or a shortcut, over the control channel (by hand: --allow-control).
Quick start
Open the side panel, then trigger the action button
Asked to open a surface, the agent runs the extension and opens the page in a tab.
How the agent uses it
A url opens in a background tab and answers target.targetId for extension_screenshot and readers. A replay carries no user gesture. extension_dev and extension_start launch, extension_reload reloads, extension_wait waits, extension_stop ends.
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 | local, on by default |
| Tier | Act |
| Needs | a dev session, which carries control unless started with allowControl: false |
| Read only | no |
| Destructive | no |
| Idempotent | no |
| Reaches the open web | yes |
Inputs
| Input | Type | Required | Default | What it does |
|---|---|---|---|---|
projectPath | string | yes | Project root of a running session: extension_dev, extension_start, or npx extension dev|start by hand | |
surface | "popup" | "options" | "side-panel" | "devtools" | "newtab" | "history" | "bookmarks" | "action" | "command" | no | Surface to open; action and command replay; devtools is Chromium only. | |
name | string | no | command: the chrome.commands name. | |
menuItemId | string | no | action: replay contextMenus.onClicked for this menu item id instead of the toolbar click (Chromium, over the debug port). | |
panel | string | no | devtools: panel title. | |
waitMs | number | no | devtools: ms to wait (default 15000). | |
reload | boolean | no | false | devtools: reload the inspected tab. |
url | string | no | Url to open (a path resolves to the extension). | |
foreground | boolean | no | false | Raise the tab; only for a page the person must act on. |
newTab | boolean | no | false | New tab even if one shows the url. |
tab | number | no | With url: navigate this chrome.tabs id (not a tab position; from dom_snapshot listTabs: true); with menuItemId: the tab the click is for (default the active tab). | |
asTab | boolean | no | false | Render the surface in a tab. |
observe | boolean | string | no | false | true adds value.observation, the settled surface's elements; a surface name (e.g. popup) reads that one. |
browser | string | no | Running session's browser; needed when several run. | |
timeout | number | no | Timeout ms (default 30000; Firefox 10000; debug port 15000). |
When it fails
- The call is refused because no session is live. Start one with
extension_devorextension_startand call again. - The control channel is off. The session was started with
allowControl: false. Start it again without that flag. - The answer depends on the network. This tool reaches the open web, so a refusal can be the network, not the project.
Next
- MCP server: install, the three groups and the session gates
- Install in your client
extension_element_act: Click or fill one element by CSS selector, or send trusted mouse and key input to a surface or page, with no caller code and no allowEval.extension_element_read: Read one element's text by CSS selector, or wait until it is visible, in a surface or page.extension_eval: Evaluate JavaScript in an extension's background, surface, content script, page or targetId.extension_reload: Reload a running session's background, or one tab, through the control channel (allowControl); answers once it is back.extension_storage_read: Read the extension's storage (chrome.storage or browser.storage) from its background, with no eval.extension_storage_write: Write one key of the extension's storage (chrome.storage or browser.storage) from its background, with no eval.