{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Trigger a build for a single Preview.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/builds_account_id"},"script_tag":{"$ref":"#/definitions/builds_external_script_id","description":"The Worker script tag (external script ID)"},"preview_id":{"$ref":"#/definitions/builds_external_script_id","description":"The script tag of the Preview, which is a Worker in its own right"}},"required":["account_id","script_tag","preview_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/builds_CreateBuildRequest"}},"required":["path","body"],"additionalProperties":false,"definitions":{"builds_account_id":{"description":"Account identifier.","type":"string","examples":["account-123"]},"builds_external_script_id":{"description":"System-generated tag of the Worker. This is not the Worker name.","type":"string","examples":["dd7160bb9cef458093557736f4b9e75b"]},"builds_CreateBuildRequest":{"type":"object","properties":{"branch":{"description":"Git branch name (required if commit_hash not provided)","allOf":[{"$ref":"#/definitions/builds_branch"}]},"commit_hash":{"description":"Git commit hash (required if branch not provided)","allOf":[{"$ref":"#/definitions/builds_commit_hash"}]},"seed_repo":{"description":"Optional repository and file overrides used to seed this build.","allOf":[{"$ref":"#/definitions/builds_BuildSeedRepoInput"}]}},"anyOf":[{"required":["commit_hash"]},{"required":["branch"]}]},"builds_branch":{"description":"Git branch name.","type":"string","examples":["main"]},"builds_commit_hash":{"description":"Git commit hash","type":"string","examples":["abc123def456"]},"builds_BuildSeedRepoInput":{"type":"object","properties":{"branch":{"description":"Repository branch to seed.","allOf":[{"$ref":"#/definitions/builds_branch"}]},"files":{"description":"Files to add or replace for this build. Maximum 2.","type":"array","items":{"$ref":"#/definitions/builds_BuildSeedRepoInputFile"},"maxItems":2},"owner":{"description":"Repository owner or namespace.","type":"string","examples":["cloudflare"]},"path":{"description":"Path within the repository to seed.","type":"string","examples":["/"]},"provider":{"description":"Source control provider for the seed repository.","type":"string","enum":["github","gitlab"]},"repository":{"description":"Repository name.","type":"string","examples":["workers-sdk"]}},"required":["provider","owner","repository"]},"builds_BuildSeedRepoInputFile":{"type":"object","properties":{"content":{"type":"string","examples":["name = \"my-worker\"\nmain = \"src/index.js\"\n"]},"filename":{"type":"string","examples":["wrangler.toml"]},"isBase64":{"description":"Whether content is Base64-encoded.","type":"boolean","default":false},"replace":{"description":"Existing text in the target file to replace with content.","type":"string"}},"required":["filename","content"]}}},"name":"Create preview build","id":"cloudflare.createpreviewbuild","example":{"path":{"account_id":"account-123","script_tag":"dd7160bb9cef458093557736f4b9e75b","preview_id":"dd7160bb9cef458093557736f4b9e75b"},"body":{"commit_hash":"abc123def456"}},"maxRequests":1,"summary":false}}