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
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
script_tag required | string | script_tag parameter |
preview_id required | string | preview_id parameter |
branch | string | Git branch name (required if commit_hash not… |
commit_hash required | string | Git commit hash (required if branch not provided) |
seed_repo | object | Optional 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:
{
"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:
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 ….