Home / Servers / Cloudflare API / update_worker_preview
Update preview
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Update preview Update a single Preview of a Worker. Supports partial updates to the tracked branch, the… [PATCH /accounts/{account_id}/builds/workers/{script_tag}/previews/{preview_id}]
Name on the gateway: cloudflare_api__update_worker_preview · 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 |
auto_build | boolean | Whether pushes to the git branch build this… |
auto_delete | boolean | Whether deleting the git branch also deletes… |
branch | string | Git branch this Preview tracks |
settings | object | Partial build settings for updating a Worker… |
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__update_worker_preview",
"arguments": {
"account_id": "…",
"script_tag": "…",
"preview_id": "…"
}
}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 update preview tool with account_id set to ….