Skip to content

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.

Quick start ​

Create the extension.dev project for this build under acme

How the agent uses it ​

The first call answers a URL a signed-in workspace member approves; resume with deviceCode and waitSeconds, the login is stored too. The first build spends one build of the workspace's monthly allowance, build command exactly as stored. extension_create, extension_templates_read and extension_feature_plan work locally.

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 ​

Groupplatform, on with --features=local,platform (private alpha)
TierPlatform
Needsthe server started with --features=local,platform
Read onlyno
Destructiveno
Idempotentno
Reaches the open webyes

Inputs ​

InputTypeRequiredDefaultWhat it does
projectstringnoNew '<workspace>/<project>'.
projectPathstringnoFolder holding manifest.json, uploaded as it is (absolute or relative to the server cwd; default: the cwd when it holds manifest.json or extension.config.). node_modules, dist, .git, .extension-dev, .zip, .crx, .xpi, .env, key files and .gitignore entries stay out; 4 MB zipped at most. On an uploaded project with a login this re-seeds and rebuilds it after an approval; extension_builds_act rebuild rebuilds its stored tree without a new upload.
repostringnoGitHub '<owner>/<repo>' the platform reads the source from, never writes to; instead of projectPath.
rootDirectorystringnoWith repo: the folder inside it to build, e.g. 'examples/action'.
workspaceRootstringnoWith repo: where dependencies install, '.' for the repo root; default rootDirectory.
refstringnoWith repo: the branch, tag or full commit sha to build; default the repo's default branch.
installationIdstringnoOmit; the platform finds it or answers a connect link.
displayNamestringnoHuman name; rename later with extension_workspace_configure configure-project.
descriptionstringnoShort description.
installCommandstringnoInstall command; left out, the platform reads it from the project.
buildCommandstringnoRun as it is per browser (does not add --browser); <browser> substituted. Left out, the platform reads it from the project.
outputDirectorystringno"dist/<browser>"Build output; <browser> substituted.
browsersarray of "chrome" | "edge" | "firefox"no["chrome"]Browsers to build.
outputDirectoriesobjectnoPer-browser outputDirectory overrides.
projectsarray of objectnoInstead of project and its source: 1 to 10 (max 20) { project, repo (and rootDirectory, workspaceRoot, ref) or projectPath } of one workspace, up to 10 per approval and at most 10 per hour, never split silently.
deviceCodestringnoResume token; reuse re-reads the outcome.
waitSecondsnumbernoWith deviceCode, seconds the call blocks for approval (0 to 900).
loginbooleannotrueStore the minted login.
approvalIdstringnoRe-seed approval.
apistringnoBase URL; omitted: EXTENSION_DEV_API_URL, else extension.dev.

When it fails ​

  • The tool is missing from the client's list. Start the server with --features=local,platform; see Platform tools.
  • 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 the approvalId.
  • 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 no approvalId to 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 no approvalId.
  • 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_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.