extension_publish
Publish a build on extension.dev: the link for testers, with a download and a run command for each browser; use it first to share or ship (no project yet: extension_project_create).
Quick start
Send the latest build to my testers
How the agent uses it
On a public project, or a public channel, send testers the channel link (<workspace>.extension.dev/<project>/<channel>); a private build link expires.
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 |
| 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 (default): the link; sync-captures: captures/<browser>/*.png 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 | sync-captures: approved approval id. | |
project | string | no | Stored login '<workspace>/<project>' when several exist. | |
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, 0 to 600 (default 180), and with approvalId for the approval. | |
api | string | no | Platform URL; default EXTENSION_DEV_API_URL. |
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. - The answer reads
status: "platform-held". extension.dev is not open to the public yet, 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. An approval lasts 15 minutes. 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 two groups and the session gates
- Install in your client
extension_approvals: Read or revoke one approval on extension.dev; revoke a pending or unused one approved by mistake (owner token).extension_auth: Sign in to an existing extension.dev project (a code for extension.dev/device, then deviceCode and waitSeconds), list stored logins, or clear them.extension_builds: Read, download, rebuild and configure platform builds.extension_preview_web: Preview a build in the web emulator; share:true returns a link anyone opens with no install (the preview://build default is for developing extension.dev itself).extension_project_create: Create an extension.dev project from its GitHub repository, BEFORE extension_auth.extension_release_promote: Release a build to a channel on extension.dev.extension_release_status: Read where a project stands on extension.dev: channels, builds, store submissions and reviews, history, rollout, listings.extension_shares: List, create and revoke emulator preview links for a tester, and list and revoke build links (a build link or channel link comes from extension_publish).extension_submit: Submit a platform build to the Chrome, Firefox, Edge and Safari stores through extension.dev.extension_submit_check: Read a store submission or ask for an approval, under a read-only hint; it executes nothing.extension_workspace: Read the workspace; change a project's settings.extension_workspace_create: Create a missing extension.dev workspace, before extension_project_create.