Skip to content

extension_preview_web ​

Preview a build in the web emulator; share:true returns a link that needs no install.

Quick start ​

Share this build with my designer

How the agent uses it ​

Answers share.previewUrl; extension_publish answers a tester link with downloads, extension_shares_read lists, extension_shares_manage revokes. Content scripts run only on sample pages, a limit of the preview only. The preview://build default is for developing extension.dev itself.

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
TierPlatform
Needsnone for the local preview; share:true needs the server started with --features=local,platform, and a login
Read onlyno
Destructiveno
Idempotentno
Reaches the open webyes

Inputs ​

InputTypeRequiredDefaultWhat it does
projectPathstringyesThe extension's folder (manifest.json or package.json).
projectstringno'<workspace>/<project>' login to use when several are stored.
browser"chrome" | "chromium" | "edge" | "brave" | "opera" | "vivaldi" | "yandex" | "firefox" | "waterfox" | "librewolf" | "zen" | "floorp" | "safari"no"chrome"dist/<browser> to preview; Firefox view for Firefox.
buildbooleannotrueBuild first.
distPathstringnoPreview this directory; implies build:false.
hostUrlstringnoLocal preview server origin; needed without share outside an extension.dev checkout.
probebooleannotrueCheck the artifact loads.
openbooleannofalseAlso open it in a live session.
openIn"chrome" | "chromium" | "edge" | "brave" | "opera" | "vivaldi" | "yandex" | "firefox" | "waterfox" | "librewolf" | "zen" | "floorp" | "safari"noSession browser to open in.
surfacestringnoPage the link opens on: popup, options, side-panel, newtab, devtools, history, bookmarks.
sharebooleannofalseUpload for share.previewUrl; metered against the workspace's allowance, and hands over the code.

When it fails ​

  • 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_approvals_read: List the open approvals this login asked for on extension.dev, or read one.
  • extension_approvals_request: Request a workspace owner's approval of one act on extension.dev: a store submit, a release, a public visibility or channel, a slug rename or a share revoke.
  • extension_approvals_revoke: Revoke an approval granted by mistake on extension.dev (owner token).
  • extension_auth_login: Sign in to an extension.dev project (a code on the linked device page, then deviceCode), or clear stored logins.
  • extension_auth_read: List the extension.dev logins stored on this machine.
  • extension_builds_act: Rebuild, recheck or configure builds on extension.dev, or set up channels; extension_builds_read reads, extension_build and extension_analyze work locally.
  • extension_builds_download: Download a verified package of an extension.dev build to this machine.
  • extension_builds_read: Read builds made on extension.dev: list recent ones, get one, or read its logs.
  • extension_project_create: Create an extension.dev project from a folder (projectPath, uploaded, no push; again: re-seed and rebuild) or a GitHub repo, BEFORE extension_auth_login.
  • extension_publish: Publish and share a build through extension.dev: answers the tester link, a page with a download and a run command for each browser (no project yet: extension_project_create).
  • extension_release_promote: Release a build to a channel on extension.dev, cut a version-bump pull request, or roll a channel back.
  • extension_release_read: Read where a project stands on extension.dev: channels, builds, store submissions and reviews, history, rollout and listings.
  • extension_shares_manage: Create an emulator preview link, or revoke a preview or build link, on extension.dev.
  • extension_shares_read: List a project's emulator preview links and build links on extension.dev.
  • extension_submission_read: Read a project's store state: preflight answers what each store needs, status the submissions, dry-run a rehearsed submit.
  • extension_submit: Submit an extension.dev build to the Chrome, Firefox, Edge and Safari stores.
  • extension_workspace_configure: Change a project's settings, visibility or build environment.
  • extension_workspace_create: Create a missing extension.dev workspace, before extension_project_create; the personal workspace always exists.
  • extension_workspace_read: Read the extension.dev workspace: info, projects, usage and settings.