{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Create a trigger defining the repository connection, Worker tag, commands, filters, cache setting, and build token.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/builds_account_id"}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/builds_CreateTriggerRequest"}},"required":["path","body"],"additionalProperties":false,"definitions":{"builds_account_id":{"description":"Account identifier.","type":"string","examples":["account-123"]},"builds_CreateTriggerRequest":{"type":"object","properties":{"branch_excludes":{"$ref":"#/definitions/builds_branch_excludes"},"branch_includes":{"$ref":"#/definitions/builds_branch_includes"},"build_caching_enabled":{"$ref":"#/definitions/builds_build_caching_enabled"},"build_command":{"$ref":"#/definitions/builds_build_command"},"build_token_uuid":{"$ref":"#/definitions/builds_build_token_uuid"},"deploy_command":{"$ref":"#/definitions/builds_deploy_command"},"external_script_id":{"$ref":"#/definitions/builds_external_script_id"},"path_excludes":{"$ref":"#/definitions/builds_path_excludes"},"path_includes":{"$ref":"#/definitions/builds_path_includes"},"repo_connection_uuid":{"$ref":"#/definitions/builds_repo_connection_uuid"},"root_directory":{"$ref":"#/definitions/builds_root_directory"},"trigger_name":{"$ref":"#/definitions/builds_trigger_name"}},"required":["external_script_id","build_token_uuid","trigger_name","build_command","deploy_command","root_directory","branch_includes","branch_excludes","path_includes","path_excludes","repo_connection_uuid"]},"builds_branch_excludes":{"description":"Branch patterns that must not start builds.","type":"array","items":{"type":"string"},"examples":[[]]},"builds_branch_includes":{"description":"Branch patterns that can start builds.","type":"array","items":{"type":"string"},"examples":[["main"]]},"builds_build_caching_enabled":{"description":"Whether builds reuse cached dependencies and build artifacts.","type":"boolean","default":false,"examples":[false]},"builds_build_command":{"description":"Command to build the Worker.","type":"string","examples":["npm run build"]},"builds_build_token_uuid":{"description":"UUID of the build token used when deploying the Worker.","type":"string","format":"uuid"},"builds_deploy_command":{"description":"Command to deploy the Worker.","type":"string","examples":["npx wrangler deploy"]},"builds_external_script_id":{"description":"System-generated tag of the Worker. This is not the Worker name.","type":"string","examples":["dd7160bb9cef458093557736f4b9e75b"]},"builds_path_excludes":{"description":"Path patterns that must not start builds.","type":"array","items":{"type":"string"},"examples":[["*.md"]]},"builds_path_includes":{"description":"Path patterns that can start builds.","type":"array","items":{"type":"string"},"default":["*"],"examples":[["*"]]},"builds_repo_connection_uuid":{"description":"Repository connection UUID.","type":"string","format":"uuid"},"builds_root_directory":{"description":"Repository directory in which build and deploy commands run.","type":"string","examples":["/"]},"builds_trigger_name":{"description":"Human-readable name of the build trigger.","type":"string","examples":["Production Deploy"]}}},"name":"Create a build trigger","id":"cloudflare.createtrigger","example":{"path":{"account_id":"account-123"},"body":{"external_script_id":"dd7160bb9cef458093557736f4b9e75b","build_token_uuid":"00000000-0000-4000-8000-000000000000","trigger_name":"Production Deploy","build_command":"npm run build","deploy_command":"npx wrangler deploy","root_directory":"/","branch_includes":["main"],"branch_excludes":[],"path_includes":["*"],"path_excludes":["*.md"],"repo_connection_uuid":"00000000-0000-4000-8000-000000000000"}},"maxRequests":1,"summary":false}}