Home / Servers / Cloudflare API / create_preview_build

Create preview build

An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.

Create preview build Trigger a build for a single Preview. [POST /accounts/{account_id}/builds/workers/{script_tag}/previews/{preview_id}/builds]

Name on the gateway: cloudflare_api__create_preview_build · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
script_tag requiredstringscript_tag parameter
preview_id requiredstringpreview_id parameter
branchstringGit branch name (required if commit_hash not…
commit_hash requiredstringGit commit hash (required if branch not provided)
seed_repoobjectOptional repository and file overrides used to…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "cloudflare_api__create_preview_build",
  "arguments": {
    "account_id": "…",
    "script_tag": "…",
    "preview_id": "…",
    "commit_hash": "…"
  }
}

Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:

Run in your terminal
claude mcp add --transport http hj-cloudflare-api https://mcp.hjlabs.in/mcp/cloudflare-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create preview build tool with account_id set to ….

More from Cloudflare API