Skip to content

extension_screenshot ​

Take a .png of one open surface, page or targetId in a live session (Safari: pages only); open it with extension_open first.

Quick start ​

Open the popup and take a screenshot of it for the store listing

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
TierSee
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
browserstringnoSession browser; required when several run.
context"page" | "popup" | "options" | "sidebar" | "newtab" | "history" | "bookmarks"no"page"page: the tab url picks; else that open surface.
urlstringnopage: tab url substring.
targetIdstringnoA page's targetId (extension_open, or dom_snapshot listTargets); overrides url.
widthnumbernoViewport width (CSS px).
heightnumbernoViewport height (CSS px).
deviceScaleFactornumbernoPixel ratio, 0.5 to 4.
store"chrome" | "firefox" | "edge" | "safari" | "all"noStore listing size, for extension_submit sync-listing.
browserCapturebooleannoCapture for extension_publish sync-captures.
pathstringnoA .png or folder/ under projectPath or an MCP root.
timeoutnumbernoTimeout ms (default 30000; Firefox 10000; debug port 15000).

Browser captures ​

browserCapture: true on a live dev session captures the extension running in that browser for the project's public build pages. The file goes to captures/<browser>/<surface>-NN.png under projectPath, where <browser> is the session's browser: chrome, firefox, edge or safari. Another Chromium flavor is refused with a hint to start extension_dev browser:"chrome". captures/<browser>/captures.json records the live browser's name and version and each file's surface. It cannot be combined with store: a store screenshot is marketing, a browser capture shows the extension in use, and the platform never generates either. One call per surface.

The answer reads <path> (640 x 480 pixels) is a Chrome 142 capture of the popup. One call per surface; extension_publish action:"sync-captures" browsers:["chrome"] sends captures/chrome/ to the public build page after a workspace owner approves. See extension_publish for the send.

When it fails ​

Next ​

  • MCP server: install, the two groups and the session gates
  • Install in your client
  • extension_analyze: Analyze a BUILT extension in dist/<browser>: sizes, entries, permissions, store checks (not on a dev build).
  • extension_doctor: Diagnose a dev session leg by leg, each with its remediation; run it first when an act tool errors unexpectedly.
  • extension_dom_snapshot: Take a shallow DOM snapshot of one open surface or targetId, or list what is open (listTargets on the debug port, listTabs).
  • extension_inspect: Inspect a web page (or targetId) over the debugger protocol: HTML, DOM, console, probes, closed shadow roots.
  • extension_list_extensions: List the extensions in a session's browser; its own carries ownExtension:true.
  • extension_logs: Read a dev session's logs from every context in one timeline, or follow:true for live frames after the replayed ring.
  • extension_manifest_validate: Validate a manifest.json across browsers; buildBlocking lists the errors that make extension_build refuse.
  • extension_theme_verify: Verify a Chrome theme manifest headless: the colors Chrome would paint and the keys it discards.