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).
Quick start
Send the latest build to my testers
How the agent uses it
extension_preview_web: emulator links; extension_shares_manage revokes. On a public project, or a public channel, send testers the channel link the answer gives; a private build link expires.
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 | platform, on with --features=local,platform (private alpha) |
| Tier | Platform |
| Needs | the server started with --features=local,platform, and a login; sync-captures needs a workspace owner's approval, and a link to a private project a workspace member's |
| Read only | no |
| Destructive | no |
| Idempotent | no |
| Reaches the open web | yes |
Inputs
| Input | Type | Required | Default | What it does |
|---|---|---|---|---|
action | "publish" | "sync-captures" | no | "publish" | publish: the link; sync-captures: captures/<browser>/*.png, else STORE.md screenshots, to build pages (approval). |
browsers | array of "chrome" | "firefox" | "edge" | "safari" | no | sync-captures: browsers, one approval each. | |
projectPath | string | no | sync-captures: project root. | |
approvalId | string | no | Approved approval id. | |
project | string | no | '<workspace>/<project>' login to use when several are stored. | |
ttlHours | number | no | Private link lifetime, hours (default 168). | |
buildSha | string | no | Build sha, 7 to 40 hex (an unreadable index echoes the sha back unverified); not with channel. | |
channel | string | no | Link a channel's newest build instead. | |
force | boolean | no | Publish despite failed checks. | |
waitSeconds | number | no | Seconds to wait for the result (with approvalId, the approval), 0 to 600 (omitted: 180, no wait for the approval); the hosted server waits at most 45 and says so in warnings. | |
api | string | no | Base URL; omitted: EXTENSION_DEV_API_URL, else extension.dev. |
Browser captures
action: "sync-captures" with browsers and projectPath sends the captures that extension_screenshot made with browserCapture: true to the project's public build pages. It reads captures/<browser>/*.png in filename order with captures/<browser>/captures.json beside them, for each browser in browsers. The set is refused on your machine before any approval: PNG only, no alpha, 1 to 10 files, at least 640 pixels wide, 1 MB each.
A workspace owner then approves the exact set. The first call answers Approve at <approvalUrl>: the page lists the 2 Chrome captures as the platform computed the change. Then call extension_publish action:"sync-captures" again with browsers:["chrome"], the same projectPath and approvalId <id>. The call with that approvalId answers 2 Chrome captures from captures/chrome/ now show on the public build pages of acme/widget as captured in Chrome 142: <publicUrl>. Track the set at <trackUrl>, the project settings' Browser captures section.
A browser capture is the developer's act, through this tool or a hand upload in the console. The platform never generates one. In the console, the Browser captures section of project settings holds one tray per browser: upload PNGs, reorder them, caption each one in up to 120 characters, or remove one. The public build page's In Chrome section (Firefox, Edge and Safari have their own) shows that browser's captures under "What the developer captured in Chrome 142." Safari with no captures falls back to the App Store set, "The App Store set, captured in Safari." Chrome, Firefox and Edge show nothing without captures. Store screenshots are marketing and travel separately with extension_submit.
When it fails
- The tool is missing from the client's list. Start the server with
--features=local,platform; see Platform tools. - The platform refuses the call. Log in first with
extension_auth_login. - The answer reads
status: "platform-held". extension.dev is not open to the public yet and this workspace was not let in early, so nothing ran on its machines. Creating, running and building an extension still work on your machine; see Use the platform from your agent. - The answer reads
status: "approval-required". The act needs a person's approval. Open the approval URL in the answer, approve it, then call again with the same arguments and theapprovalId. - The approval is refused as
ApprovalExpired. A release, submit or store approval lasts 12 hours; a share link or build settings approval lasts 2 hours, and approving does not extend the clock. Call again with noapprovalIdto ask for a fresh one. - The approval is refused as
ApprovalConsumed. An approval runs its act once, and the call that spent it may already have run. Read the current state first, then ask again only if the act did not happen. - The approval is refused as
ApprovalScopeMismatch. It covers a different act, or the arguments changed since it was approved. Call again with noapprovalId. - 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_preview_web: Preview a build in the web emulator; share:true returns a link that needs no install.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_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.