@jurislm/woodpecker-ci-plugin 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,123 +1,123 @@
1
1
  // Generated by scripts/generate-openapi.ts.
2
2
  import { z } from "zod";
3
3
  export const operations = [
4
- { name: "woodpecker_list_agents", method: "GET", path: "/agents", description: "Use this when an agent needs to list agents.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
5
- { name: "woodpecker_create_new_agent", method: "POST", path: "/agents", description: "Use this when an agent needs to create a new agent.", inputSchema: z.object({ body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
6
- { name: "woodpecker_delete_agent", method: "DELETE", path: "/agents/{agent_id}", description: "Use this when an agent needs to delete an agent.", inputSchema: z.object({ "agent_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
7
- { name: "woodpecker_get_agent", method: "GET", path: "/agents/{agent_id}", description: "Use this when an agent needs to get an agent.", inputSchema: z.object({ "agent_id": z.number().int() }), responseSchema: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
8
- { name: "woodpecker_update_agent", method: "PATCH", path: "/agents/{agent_id}", description: "Use this when an agent needs to update an agent.", inputSchema: z.object({ "agent_id": z.number().int(), body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
9
- { name: "woodpecker_list_agent_tasks", method: "GET", path: "/agents/{agent_id}/tasks", description: "Use this when an agent needs to list agent tasks.", inputSchema: z.object({ "agent_id": z.number().int() }), responseSchema: z.array(z.object({ "agent_id": z.number().int().optional(), "concurrency_group": z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies.").optional(), "concurrency_limit": z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited.").optional(), "created": z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines.").optional(), "dep_status": z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])).optional(), "dependencies": z.array(z.string()).optional(), "id": z.string().optional(), "labels": z.record(z.string(), z.string()).optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "run_on": z.array(z.string()).optional() })), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
10
- { name: "woodpecker_provide_pipeline_status_information_ccmenu_tool", method: "GET", path: "/badges/{repo_id}/cc.xml", description: "Use this when an agent needs to provide pipeline status information to the ccmenu tool.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
11
- { name: "woodpecker_get_status_pipeline_as_svg_badge", method: "GET", path: "/badges/{repo_id}/status.svg", description: "Use this when an agent needs to get status of pipeline as svg badge.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
12
- { name: "woodpecker_list_available_pprof_profiles_html", method: "GET", path: "/debug/pprof", description: "Use this when an agent needs to list available pprof profiles (html).", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
13
- { name: "woodpecker_get_pprof_stack_traces_that_led_blocking_on_synchronization_primitives", method: "GET", path: "/debug/pprof/block", description: "Use this when an agent needs to get pprof stack traces that led to blocking on synchronization primitives.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
14
- { name: "woodpecker_get_command_line_invocation_current_program", method: "GET", path: "/debug/pprof/cmdline", description: "Use this when an agent needs to get the command line invocation of the current program.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
15
- { name: "woodpecker_get_pprof_stack_traces_all_current_goroutines", method: "GET", path: "/debug/pprof/goroutine", description: "Use this when an agent needs to get pprof stack traces of all current goroutines.", inputSchema: z.object({ "debug": z.number().int().default(1) }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "query", name: "debug" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
16
- { name: "woodpecker_get_pprof_heap_dump_sampling_memory_allocations_live_objects", method: "GET", path: "/debug/pprof/heap", description: "Use this when an agent needs to get pprof heap dump, a sampling of memory allocations of live objects.", inputSchema: z.object({ "gc": z.string().default("") }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "query", name: "gc" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
17
- { name: "woodpecker_get_pprof_cpu_profile", method: "GET", path: "/debug/pprof/profile", description: "Use this when an agent needs to get pprof cpu profile.", inputSchema: z.object({ "seconds": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "query", name: "seconds" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
18
- { name: "woodpecker_get_pprof_program_counters_mapping_function_names", method: "GET", path: "/debug/pprof/symbol", description: "Use this when an agent needs to get pprof program counters mapping to function names.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
19
- { name: "woodpecker_get_pprof_program_counters_mapping_function_names_post_debug_pprof_symbol", method: "POST", path: "/debug/pprof/symbol", description: "Use this when an agent needs to get pprof program counters mapping to function names.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
20
- { name: "woodpecker_get_pprof_stack_traces_that_led_creation_new_os_threads", method: "GET", path: "/debug/pprof/threadcreate", description: "Use this when an agent needs to get pprof stack traces that led to the creation of new os threads.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
21
- { name: "woodpecker_get_trace_execution_current_program", method: "GET", path: "/debug/pprof/trace", description: "Use this when an agent needs to get a trace of execution of the current program.", inputSchema: z.object({ "seconds": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "query", name: "seconds" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
22
- { name: "woodpecker_list_forges", method: "GET", path: "/forges", description: "Use this when an agent needs to list forges.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
23
- { name: "woodpecker_create_new_forge", method: "POST", path: "/forges", description: "Use this when an agent needs to create a new forge.", inputSchema: z.object({ body: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_client_secret": z.string().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }) }), responseSchema: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
24
- { name: "woodpecker_delete_forge", method: "DELETE", path: "/forges/{forge_id}", description: "Use this when an agent needs to delete a forge.", inputSchema: z.object({ "forge_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "forge_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
25
- { name: "woodpecker_get_forge", method: "GET", path: "/forges/{forge_id}", description: "Use this when an agent needs to get a forge.", inputSchema: z.object({ "forge_id": z.number().int() }), responseSchema: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "forge_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
26
- { name: "woodpecker_update_forge", method: "PATCH", path: "/forges/{forge_id}", description: "Use this when an agent needs to update a forge.", inputSchema: z.object({ "forge_id": z.number().int(), body: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_client_secret": z.string().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }) }), responseSchema: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "forge_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
27
- { name: "woodpecker_health_information", method: "GET", path: "/healthz", description: "Use this when an agent needs to health information.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
28
- { name: "woodpecker_incoming_webhook_from_forge", method: "POST", path: "/hook", description: "Use this when an agent needs to incoming webhook from forge.", inputSchema: z.object({ body: z.record(z.string(), z.any()) }), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
29
- { name: "woodpecker_current_log_level", method: "GET", path: "/log-level", description: "Use this when an agent needs to current log level.", inputSchema: z.object({}), responseSchema: z.object({ "log-level": z.string().optional() }), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
30
- { name: "woodpecker_set_log_level", method: "POST", path: "/log-level", description: "Use this when an agent needs to set log level.", inputSchema: z.object({ body: z.object({ "log-level": z.string().optional() }) }), responseSchema: z.object({ "log-level": z.string().optional() }), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
31
- { name: "woodpecker_list_organizations", method: "GET", path: "/orgs", description: "Use this when an agent needs to list organizations.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "forge_id": z.number().int().optional(), "id": z.number().int().optional(), "is_user": z.boolean().optional(), "name": z.string().optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
32
- { name: "woodpecker_lookup_organization_full_name", method: "GET", path: "/orgs/lookup/{org_full_name}", description: "Use this when an agent needs to lookup an organization by full name.", inputSchema: z.object({ "org_full_name": z.string() }), responseSchema: z.object({ "forge_id": z.number().int().optional(), "id": z.number().int().optional(), "is_user": z.boolean().optional(), "name": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_full_name" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
33
- { name: "woodpecker_delete_organization", method: "DELETE", path: "/orgs/{org_id}", description: "Use this when an agent needs to delete an organization.", inputSchema: z.object({ "org_id": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
34
- { name: "woodpecker_get_organization", method: "GET", path: "/orgs/{org_id}", description: "Use this when an agent needs to get an organization.", inputSchema: z.object({ "org_id": z.string() }), responseSchema: z.array(z.object({ "forge_id": z.number().int().optional(), "id": z.number().int().optional(), "is_user": z.boolean().optional(), "name": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
35
- { name: "woodpecker_list_agents_organization", method: "GET", path: "/orgs/{org_id}/agents", description: "Use this when an agent needs to list agents for an organization.", inputSchema: z.object({ "org_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
36
- { name: "woodpecker_create_new_organization_scoped_agent", method: "POST", path: "/orgs/{org_id}/agents", description: "Use this when an agent needs to create a new organization-scoped agent.", inputSchema: z.object({ "org_id": z.number().int(), body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
37
- { name: "woodpecker_delete_organization_scoped_agent", method: "DELETE", path: "/orgs/{org_id}/agents/{agent_id}", description: "Use this when an agent needs to delete an organization-scoped agent.", inputSchema: z.object({ "org_id": z.number().int(), "agent_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "agent_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
38
- { name: "woodpecker_update_organization_scoped_agent", method: "PATCH", path: "/orgs/{org_id}/agents/{agent_id}", description: "Use this when an agent needs to update an organization-scoped agent.", inputSchema: z.object({ "org_id": z.number().int(), "agent_id": z.number().int(), body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "agent_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
39
- { name: "woodpecker_get_permissions_currently_authenticated_user_given_organization", method: "GET", path: "/orgs/{org_id}/permissions", description: "Use this when an agent needs to get the permissions of the currently authenticated user for the given organization.", inputSchema: z.object({ "org_id": z.string() }), responseSchema: z.array(z.object({ "admin": z.boolean().optional(), "member": z.boolean().optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
40
- { name: "woodpecker_list_organization_registries", method: "GET", path: "/orgs/{org_id}/registries", description: "Use this when an agent needs to list organization registries.", inputSchema: z.object({ "org_id": z.string(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
41
- { name: "woodpecker_create_organization_registry", method: "POST", path: "/orgs/{org_id}/registries", description: "Use this when an agent needs to create an organization registry.", inputSchema: z.object({ "org_id": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
42
- { name: "woodpecker_delete_organization_registry_name", method: "DELETE", path: "/orgs/{org_id}/registries/{registry}", description: "Use this when an agent needs to delete an organization registry by name.", inputSchema: z.object({ "org_id": z.string(), "registry": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "registry" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
43
- { name: "woodpecker_get_organization_registry_address", method: "GET", path: "/orgs/{org_id}/registries/{registry}", description: "Use this when an agent needs to get a organization registry by address.", inputSchema: z.object({ "org_id": z.string(), "registry": z.string() }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "registry" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
44
- { name: "woodpecker_update_organization_registry_name", method: "PATCH", path: "/orgs/{org_id}/registries/{registry}", description: "Use this when an agent needs to update an organization registry by name.", inputSchema: z.object({ "org_id": z.string(), "registry": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "registry" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
45
- { name: "woodpecker_list_organization_secrets", method: "GET", path: "/orgs/{org_id}/secrets", description: "Use this when an agent needs to list organization secrets.", inputSchema: z.object({ "org_id": z.string(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
46
- { name: "woodpecker_create_organization_secret", method: "POST", path: "/orgs/{org_id}/secrets", description: "Use this when an agent needs to create an organization secret.", inputSchema: z.object({ "org_id": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
47
- { name: "woodpecker_delete_organization_secret_name", method: "DELETE", path: "/orgs/{org_id}/secrets/{secret}", description: "Use this when an agent needs to delete an organization secret by name.", inputSchema: z.object({ "org_id": z.string(), "secret": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "secret" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
48
- { name: "woodpecker_get_organization_secret_name", method: "GET", path: "/orgs/{org_id}/secrets/{secret}", description: "Use this when an agent needs to get a organization secret by name.", inputSchema: z.object({ "org_id": z.string(), "secret": z.string() }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "secret" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
49
- { name: "woodpecker_update_organization_secret_name", method: "PATCH", path: "/orgs/{org_id}/secrets/{secret}", description: "Use this when an agent needs to update an organization secret by name.", inputSchema: z.object({ "org_id": z.string(), "secret": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "secret" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
50
- { name: "woodpecker_list_pipelines_in_queue", method: "GET", path: "/pipelines", description: "Use this when an agent needs to list pipelines in queue.", inputSchema: z.object({}), responseSchema: z.array(z.object({ "author": z.string().optional(), "author_avatar": z.string().optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "finished": z.number().int().optional(), "full_name": z.string().optional(), "id": z.number().int().optional(), "message": z.string().describe("// Deprecated").optional(), "number": z.number().int().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "repo_id": z.number().int().optional(), "started": z.number().int().optional(), "status": z.string().optional(), "tag_title": z.string().optional(), "title": z.string().optional() })), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
51
- { name: "woodpecker_get_pipeline_queue_information", method: "GET", path: "/queue/info", description: "Use this when an agent needs to get pipeline queue information.", inputSchema: z.object({}), responseSchema: z.object({ "paused": z.boolean().optional(), "pending": z.array(z.object({ "agent_id": z.number().int().optional(), "agent_name": z.string().optional(), "concurrency_group": z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies.").optional(), "concurrency_limit": z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited.").optional(), "created": z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines.").optional(), "dep_status": z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])).optional(), "dependencies": z.array(z.string()).optional(), "id": z.string().optional(), "labels": z.record(z.string(), z.string()).optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "pipeline_number": z.number().int().optional(), "repo_id": z.number().int().optional(), "run_on": z.array(z.string()).optional() })).optional(), "running": z.array(z.object({ "agent_id": z.number().int().optional(), "agent_name": z.string().optional(), "concurrency_group": z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies.").optional(), "concurrency_limit": z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited.").optional(), "created": z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines.").optional(), "dep_status": z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])).optional(), "dependencies": z.array(z.string()).optional(), "id": z.string().optional(), "labels": z.record(z.string(), z.string()).optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "pipeline_number": z.number().int().optional(), "repo_id": z.number().int().optional(), "run_on": z.array(z.string()).optional() })).optional(), "stats": z.object({ "pending_count": z.number().int().optional(), "running_count": z.number().int().optional(), "waiting_on_deps_count": z.number().int().optional(), "worker_count": z.number().int().optional() }).optional(), "waiting_on_deps": z.array(z.object({ "agent_id": z.number().int().optional(), "agent_name": z.string().optional(), "concurrency_group": z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies.").optional(), "concurrency_limit": z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited.").optional(), "created": z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines.").optional(), "dep_status": z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])).optional(), "dependencies": z.array(z.string()).optional(), "id": z.string().optional(), "labels": z.record(z.string(), z.string()).optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "pipeline_number": z.number().int().optional(), "repo_id": z.number().int().optional(), "run_on": z.array(z.string()).optional() })).optional() }), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
52
- { name: "woodpecker_block_til_pipeline_queue_has_running_item", method: "GET", path: "/queue/norunningpipelines", description: "Use this when an agent needs to block til pipeline queue has a running item.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
53
- { name: "woodpecker_pause_pipeline_queue", method: "POST", path: "/queue/pause", description: "Use this when an agent needs to pause the pipeline queue.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
54
- { name: "woodpecker_resume_pipeline_queue", method: "POST", path: "/queue/resume", description: "Use this when an agent needs to resume the pipeline queue.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
55
- { name: "woodpecker_list_global_registries", method: "GET", path: "/registries", description: "Use this when an agent needs to list global registries.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
56
- { name: "woodpecker_create_global_registry", method: "POST", path: "/registries", description: "Use this when an agent needs to create a global registry.", inputSchema: z.object({ body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
57
- { name: "woodpecker_delete_global_registry_name", method: "DELETE", path: "/registries/{registry}", description: "Use this when an agent needs to delete a global registry by name.", inputSchema: z.object({ "registry": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "registry" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
58
- { name: "woodpecker_get_global_registry_name", method: "GET", path: "/registries/{registry}", description: "Use this when an agent needs to get a global registry by name.", inputSchema: z.object({ "registry": z.string() }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "registry" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
59
- { name: "woodpecker_update_global_registry_name", method: "PATCH", path: "/registries/{registry}", description: "Use this when an agent needs to update a global registry by name.", inputSchema: z.object({ "registry": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "registry" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
60
- { name: "woodpecker_list_all_repositories_on_server", method: "GET", path: "/repos", description: "Use this when an agent needs to list all repositories on the server.", inputSchema: z.object({ "active": z.boolean().optional(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "active" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
61
- { name: "woodpecker_activate_repository", method: "POST", path: "/repos", description: "Use this when an agent needs to activate a repository.", inputSchema: z.object({ "forge_remote_id": z.string() }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "query", name: "forge_remote_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
62
- { name: "woodpecker_lookup_repository_full_name", method: "GET", path: "/repos/lookup/{repo_full_name}", description: "Use this when an agent needs to lookup a repository by full name.", inputSchema: z.object({ "repo_full_name": z.string() }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_full_name" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
63
- { name: "woodpecker_repair_all_repositories_on_server", method: "POST", path: "/repos/repair", description: "Use this when an agent needs to repair all repositories on the server.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
64
- { name: "woodpecker_delete_repository", method: "DELETE", path: "/repos/{repo_id}", description: "Use this when an agent needs to delete a repository.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
65
- { name: "woodpecker_get_repository", method: "GET", path: "/repos/{repo_id}", description: "Use this when an agent needs to get a repository.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
66
- { name: "woodpecker_update_repository", method: "PATCH", path: "/repos/{repo_id}", description: "Use this when an agent needs to update a repository.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.string().optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.string().optional() }) }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
67
- { name: "woodpecker_get_branches_repository", method: "GET", path: "/repos/{repo_id}/branches", description: "Use this when an agent needs to get branches of a repository.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.string()), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
68
- { name: "woodpecker_change_repository_s_owner_currently_authenticated_user", method: "POST", path: "/repos/{repo_id}/chown", description: "Use this when an agent needs to change a repository's owner to the currently authenticated user.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
69
- { name: "woodpecker_list_cron_jobs", method: "GET", path: "/repos/{repo_id}/cron", description: "Use this when an agent needs to list cron jobs.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
70
- { name: "woodpecker_create_cron_job", method: "POST", path: "/repos/{repo_id}/cron", description: "Use this when an agent needs to create a cron job.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }) }), responseSchema: z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
71
- { name: "woodpecker_delete_cron_job", method: "DELETE", path: "/repos/{repo_id}/cron/{cron}", description: "Use this when an agent needs to delete a cron job.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
72
- { name: "woodpecker_get_cron_job", method: "GET", path: "/repos/{repo_id}/cron/{cron}", description: "Use this when an agent needs to get a cron job.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string() }), responseSchema: z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
73
- { name: "woodpecker_update_cron_job", method: "PATCH", path: "/repos/{repo_id}/cron/{cron}", description: "Use this when an agent needs to update a cron job.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string(), body: z.object({ "branch": z.string().optional(), "enabled": z.boolean().optional(), "name": z.string().optional(), "schedule": z.string().optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }) }), responseSchema: z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
74
- { name: "woodpecker_start_cron_job_now", method: "POST", path: "/repos/{repo_id}/cron/{cron}", description: "Use this when an agent needs to start a cron job now.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string() }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
75
- { name: "woodpecker_deletes_all_logs_pipeline", method: "DELETE", path: "/repos/{repo_id}/logs/{pipeline_number}", description: "Use this when an agent needs to deletes all logs of a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
76
- { name: "woodpecker_delete_step_logs_pipeline", method: "DELETE", path: "/repos/{repo_id}/logs/{pipeline_number}/{step_id}", description: "Use this when an agent needs to delete step logs of a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "step_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "path", name: "step_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
77
- { name: "woodpecker_get_logs_pipeline_step", method: "GET", path: "/repos/{repo_id}/logs/{pipeline_number}/{step_id}", description: "Use this when an agent needs to get logs for a pipeline step.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "step_id": z.number().int() }), responseSchema: z.array(z.object({ "data": z.array(z.number().int()).optional(), "id": z.number().int().optional(), "line": z.number().int().optional(), "step_id": z.number().int().optional(), "time": z.number().int().optional(), "type": z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4)]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "path", name: "step_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
78
- { name: "woodpecker_download_logs_pipeline_step", method: "GET", path: "/repos/{repo_id}/logs/{pipeline_number}/{step_id}/download", description: "Use this when an agent needs to download logs for a pipeline step.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "step_id": z.number().int() }), responseSchema: z.string(), responseKind: "text", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "path", name: "step_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
79
- { name: "woodpecker_move_repository_new_owner", method: "POST", path: "/repos/{repo_id}/move", description: "Use this when an agent needs to move a repository to a new owner.", inputSchema: z.object({ "repo_id": z.number().int(), "to": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "to" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
80
- { name: "woodpecker_check_current_authenticated_users_access_repository", method: "GET", path: "/repos/{repo_id}/permissions", description: "Use this when an agent needs to check current authenticated users access to the repository.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "admin": z.boolean().optional(), "created": z.number().int().optional(), "pull": z.boolean().optional(), "push": z.boolean().optional(), "synced": z.number().int().optional(), "updated": z.number().int().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
81
- { name: "woodpecker_list_repository_pipelines", method: "GET", path: "/repos/{repo_id}/pipelines", description: "Use this when an agent needs to list repository pipelines.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50), "before": z.string().optional(), "after": z.string().optional(), "branch": z.string().optional(), "event": z.string().optional(), "ref": z.string().optional(), "status": z.string().optional() }), responseSchema: z.array(z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }, { location: "query", name: "before" }, { location: "query", name: "after" }, { location: "query", name: "branch" }, { location: "query", name: "event" }, { location: "query", name: "ref" }, { location: "query", name: "status" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
82
- { name: "woodpecker_trigger_manual_pipeline", method: "POST", path: "/repos/{repo_id}/pipelines", description: "Use this when an agent needs to trigger a manual pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "branch": z.string().optional(), "message": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }) }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
83
- { name: "woodpecker_delete_pipeline", method: "DELETE", path: "/repos/{repo_id}/pipelines/{pipeline_number}", description: "Use this when an agent needs to delete a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
84
- { name: "woodpecker_get_repositories_pipeline", method: "GET", path: "/repos/{repo_id}/pipelines/{pipeline_number}", description: "Use this when an agent needs to get a repositories pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
85
- { name: "woodpecker_restart_pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}", description: "Use this when an agent needs to restart a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "event": z.string().optional(), "deploy_to": z.string().optional() }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "query", name: "event" }, { location: "query", name: "deploy_to" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
86
- { name: "woodpecker_approve_and_start_pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}/approve", description: "Use this when an agent needs to approve and start a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
87
- { name: "woodpecker_cancel_pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}/cancel", description: "Use this when an agent needs to cancel a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
88
- { name: "woodpecker_get_configuration_files_pipeline", method: "GET", path: "/repos/{repo_id}/pipelines/{pipeline_number}/config", description: "Use this when an agent needs to get configuration files for a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.array(z.object({ "data": z.array(z.number().int()).optional(), "hash": z.string().optional(), "name": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
89
- { name: "woodpecker_decline_pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}/decline", description: "Use this when an agent needs to decline a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
90
- { name: "woodpecker_get_metadata_pipeline_or_specific_workflow_including_previous_pipeline_info", method: "GET", path: "/repos/{repo_id}/pipelines/{pipeline_number}/metadata", description: "Use this when an agent needs to get metadata for a pipeline or a specific workflow, including previous pipeline info.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "curr": z.object({ "author": z.string().optional(), "avatar": z.string().optional(), "commit": z.object({ "author": z.object({ "email": z.string().optional(), "name": z.string().optional() }).optional(), "branch": z.string().optional(), "changed_files": z.array(z.string()).optional(), "draft": z.boolean().optional(), "labels": z.array(z.string()).optional(), "message": z.string().optional(), "milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "sha": z.string().optional(), "timestamp": z.number().int().optional() }).optional(), "created": z.number().int().optional(), "cron": z.string().optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).optional(), "rerun_count": z.number().int().optional(), "started": z.number().int().optional(), "status": z.string().optional(), "target": z.string().optional(), "task": z.string().optional() }).optional(), "forge": z.object({ "type": z.string().optional(), "url": z.string().optional() }).optional(), "id": z.string().optional(), "prev": z.object({ "author": z.string().optional(), "avatar": z.string().optional(), "commit": z.object({ "author": z.object({ "email": z.string().optional(), "name": z.string().optional() }).optional(), "branch": z.string().optional(), "changed_files": z.array(z.string()).optional(), "draft": z.boolean().optional(), "labels": z.array(z.string()).optional(), "message": z.string().optional(), "milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "sha": z.string().optional(), "timestamp": z.number().int().optional() }).optional(), "created": z.number().int().optional(), "cron": z.string().optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).optional(), "rerun_count": z.number().int().optional(), "started": z.number().int().optional(), "status": z.string().optional(), "target": z.string().optional(), "task": z.string().optional() }).optional(), "repo": z.object({ "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "default_branch": z.string().optional(), "forge_url": z.string().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "private": z.boolean().optional(), "remote_id": z.string().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional() }).optional(), "step": z.object({ "name": z.string().optional(), "number": z.number().int().optional() }).optional(), "sys": z.object({ "arch": z.string().optional(), "host": z.string().optional(), "name": z.string().optional(), "url": z.string().optional(), "version": z.string().optional() }).optional(), "workflow": z.object({ "matrix": z.record(z.string(), z.string()).optional(), "name": z.string().optional(), "number": z.number().int().optional() }).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
91
- { name: "woodpecker_list_active_pull_requests_repository", method: "GET", path: "/repos/{repo_id}/pull_requests", description: "Use this when an agent needs to list active pull requests of a repository.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "index": z.string().optional(), "title": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
92
- { name: "woodpecker_list_registries", method: "GET", path: "/repos/{repo_id}/registries", description: "Use this when an agent needs to list registries.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
93
- { name: "woodpecker_create_registry", method: "POST", path: "/repos/{repo_id}/registries", description: "Use this when an agent needs to create a registry.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
94
- { name: "woodpecker_delete_registry_name", method: "DELETE", path: "/repos/{repo_id}/registries/{registry}", description: "Use this when an agent needs to delete a registry by name.", inputSchema: z.object({ "repo_id": z.number().int(), "registry": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "registry" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
95
- { name: "woodpecker_get_registry_name", method: "GET", path: "/repos/{repo_id}/registries/{registry}", description: "Use this when an agent needs to get a registry by name.", inputSchema: z.object({ "repo_id": z.number().int(), "registry": z.string() }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "registry" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
96
- { name: "woodpecker_update_registry_name", method: "PATCH", path: "/repos/{repo_id}/registries/{registry}", description: "Use this when an agent needs to update a registry by name.", inputSchema: z.object({ "repo_id": z.number().int(), "registry": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "registry" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
97
- { name: "woodpecker_repair_repository", method: "POST", path: "/repos/{repo_id}/repair", description: "Use this when an agent needs to repair a repository.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
98
- { name: "woodpecker_list_repository_secrets", method: "GET", path: "/repos/{repo_id}/secrets", description: "Use this when an agent needs to list repository secrets.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
99
- { name: "woodpecker_create_repository_secret", method: "POST", path: "/repos/{repo_id}/secrets", description: "Use this when an agent needs to create a repository secret.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
100
- { name: "woodpecker_delete_repository_secret_name", method: "DELETE", path: "/repos/{repo_id}/secrets/{secretName}", description: "Use this when an agent needs to delete a repository secret by name.", inputSchema: z.object({ "repo_id": z.number().int(), "secretName": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "secretName" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
101
- { name: "woodpecker_get_repository_secret_name", method: "GET", path: "/repos/{repo_id}/secrets/{secretName}", description: "Use this when an agent needs to get a repository secret by name.", inputSchema: z.object({ "repo_id": z.number().int(), "secretName": z.string() }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "secretName" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
102
- { name: "woodpecker_update_repository_secret_name", method: "PATCH", path: "/repos/{repo_id}/secrets/{secretName}", description: "Use this when an agent needs to update a repository secret by name.", inputSchema: z.object({ "repo_id": z.number().int(), "secretName": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "secretName" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
103
- { name: "woodpecker_list_global_secrets", method: "GET", path: "/secrets", description: "Use this when an agent needs to list global secrets.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
104
- { name: "woodpecker_create_global_secret", method: "POST", path: "/secrets", description: "Use this when an agent needs to create a global secret.", inputSchema: z.object({ body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
105
- { name: "woodpecker_delete_global_secret_name", method: "DELETE", path: "/secrets/{secret}", description: "Use this when an agent needs to delete a global secret by name.", inputSchema: z.object({ "secret": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "secret" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
106
- { name: "woodpecker_get_global_secret_name", method: "GET", path: "/secrets/{secret}", description: "Use this when an agent needs to get a global secret by name.", inputSchema: z.object({ "secret": z.string() }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "secret" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
107
- { name: "woodpecker_update_global_secret_name", method: "PATCH", path: "/secrets/{secret}", description: "Use this when an agent needs to update a global secret by name.", inputSchema: z.object({ "secret": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "secret" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
108
- { name: "woodpecker_get_server_s_signature_public_key", method: "GET", path: "/signature/public-key", description: "Use this when an agent needs to get server's signature public key.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
109
- { name: "woodpecker_stream_events_like_pipeline_updates", method: "GET", path: "/stream/events", description: "Use this when an agent needs to stream events like pipeline updates.", inputSchema: z.object({ duration_ms: z.number().int().min(1).max(30000).optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: true, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
110
- { name: "woodpecker_stream_logs_pipeline_step", method: "GET", path: "/stream/logs/{repo_id}/{pipeline}/{step_id}", description: "Use this when an agent needs to stream logs of a pipeline step.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline": z.number().int(), "step_id": z.number().int(), duration_ms: z.number().int().min(1).max(30000).optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline" }, { location: "path", name: "step_id" }], stream: true, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
111
- { name: "woodpecker_get_currently_authenticated_user", method: "GET", path: "/user", description: "Use this when an agent needs to get the currently authenticated user.", inputSchema: z.object({}), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
112
- { name: "woodpecker_get_currently_authenticated_users_pipeline_feed", method: "GET", path: "/user/feed", description: "Use this when an agent needs to get the currently authenticated users pipeline feed.", inputSchema: z.object({}), responseSchema: z.array(z.object({ "author": z.string().optional(), "author_avatar": z.string().optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "finished": z.number().int().optional(), "full_name": z.string().optional(), "id": z.number().int().optional(), "message": z.string().describe("// Deprecated").optional(), "number": z.number().int().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "repo_id": z.number().int().optional(), "started": z.number().int().optional(), "status": z.string().optional(), "tag_title": z.string().optional(), "title": z.string().optional() })), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
113
- { name: "woodpecker_get_user_s_repositories", method: "GET", path: "/user/repos", description: "Use this when an agent needs to get user's repositories.", inputSchema: z.object({ "all": z.boolean().optional(), "name": z.string().optional() }), responseSchema: z.array(z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "last_pipeline": z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }).optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "all" }, { location: "query", name: "name" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
114
- { name: "woodpecker_reset_token", method: "DELETE", path: "/user/token", description: "Use this when an agent needs to reset a token.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
115
- { name: "woodpecker_return_token_current_user_as_string", method: "POST", path: "/user/token", description: "Use this when an agent needs to return the token of the current user as string.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
116
- { name: "woodpecker_list_users", method: "GET", path: "/users", description: "Use this when an agent needs to list users.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
117
- { name: "woodpecker_create_user", method: "POST", path: "/users", description: "Use this when an agent needs to create a user.", inputSchema: z.object({ body: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }) }), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
118
- { name: "woodpecker_delete_user", method: "DELETE", path: "/users/{login}", description: "Use this when an agent needs to delete a user.", inputSchema: z.object({ "login": z.string(), "forge_id": z.string(), "forge_remote_id": z.string().optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "login" }, { location: "query", name: "forge_id" }, { location: "query", name: "forge_remote_id" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
119
- { name: "woodpecker_get_user", method: "GET", path: "/users/{login}", description: "Use this when an agent needs to get a user.", inputSchema: z.object({ "login": z.string(), "forge_id": z.string(), "forge_remote_id": z.string().optional() }), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [{ location: "path", name: "login" }, { location: "query", name: "forge_id" }, { location: "query", name: "forge_remote_id" }], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
120
- { name: "woodpecker_update_user", method: "PATCH", path: "/users/{login}", description: "Use this when an agent needs to update a user.", inputSchema: z.object({ "login": z.string(), body: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }) }), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [{ location: "path", name: "login" }], stream: false, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
121
- { name: "woodpecker_get_version", method: "GET", path: "/version", description: "Use this when an agent needs to get version.", inputSchema: z.object({}), responseSchema: z.object({ "source": z.string().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [], stream: false, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } }
4
+ { name: "woodpecker_list_agents", method: "GET", path: "/agents", description: "Use this when an agent needs to list agents.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "4d164d2b21c141d95c25f26e37ef7e1a1d623ff4223feb712ebaf9086a36ce60", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
5
+ { name: "woodpecker_create_new_agent", method: "POST", path: "/agents", description: "Use this when an agent needs to create a new agent.", inputSchema: z.object({ body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "8f84f71d14eb25b06a0331d7460f2539d7b4a038f50dbedaf2cbeddb2ee2ab7e", responseSchemaHash: "2064eba7c43b0d47677d244e347c275085db7b6a66b4922468a0db09dfb56579", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
6
+ { name: "woodpecker_delete_agent", method: "DELETE", path: "/agents/{agent_id}", description: "Use this when an agent needs to delete an agent.", inputSchema: z.object({ "agent_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "98a6abdc55666fe6c062ea20acba1e02f94a495ec22f0ce49a51e2459522e580", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
7
+ { name: "woodpecker_get_agent", method: "GET", path: "/agents/{agent_id}", description: "Use this when an agent needs to get an agent.", inputSchema: z.object({ "agent_id": z.number().int() }), responseSchema: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "98a6abdc55666fe6c062ea20acba1e02f94a495ec22f0ce49a51e2459522e580", responseSchemaHash: "2064eba7c43b0d47677d244e347c275085db7b6a66b4922468a0db09dfb56579", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
8
+ { name: "woodpecker_update_agent", method: "PATCH", path: "/agents/{agent_id}", description: "Use this when an agent needs to update an agent.", inputSchema: z.object({ "agent_id": z.number().int(), body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "0279da585e366311f9489faf9f32e96b134ed687d2df887b689b9b8b0f584825", responseSchemaHash: "2064eba7c43b0d47677d244e347c275085db7b6a66b4922468a0db09dfb56579", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
9
+ { name: "woodpecker_list_agent_tasks", method: "GET", path: "/agents/{agent_id}/tasks", description: "Use this when an agent needs to list agent tasks.", inputSchema: z.object({ "agent_id": z.number().int() }), responseSchema: z.array(z.object({ "agent_id": z.number().int().optional(), "concurrency_group": z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies.").optional(), "concurrency_limit": z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited.").optional(), "created": z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines.").optional(), "dep_status": z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])).optional(), "dependencies": z.array(z.string()).optional(), "id": z.string().optional(), "labels": z.record(z.string(), z.string()).optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "run_on": z.array(z.string()).optional() })), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "98a6abdc55666fe6c062ea20acba1e02f94a495ec22f0ce49a51e2459522e580", responseSchemaHash: "899772160be2b4633e3690d415ea1a740be150bc37df49eec37c96eea9858e56", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
10
+ { name: "woodpecker_provide_pipeline_status_information_ccmenu_tool", method: "GET", path: "/badges/{repo_id}/cc.xml", description: "Use this when an agent needs to provide pipeline status information to the ccmenu tool.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
11
+ { name: "woodpecker_get_status_pipeline_as_svg_badge", method: "GET", path: "/badges/{repo_id}/status.svg", description: "Use this when an agent needs to get status of pipeline as svg badge.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
12
+ { name: "woodpecker_list_available_pprof_profiles_html", method: "GET", path: "/debug/pprof", description: "Use this when an agent needs to list available pprof profiles (html).", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
13
+ { name: "woodpecker_get_pprof_stack_traces_that_led_blocking_on_synchronization_primitives", method: "GET", path: "/debug/pprof/block", description: "Use this when an agent needs to get pprof stack traces that led to blocking on synchronization primitives.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
14
+ { name: "woodpecker_get_command_line_invocation_current_program", method: "GET", path: "/debug/pprof/cmdline", description: "Use this when an agent needs to get the command line invocation of the current program.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
15
+ { name: "woodpecker_get_pprof_stack_traces_all_current_goroutines", method: "GET", path: "/debug/pprof/goroutine", description: "Use this when an agent needs to get pprof stack traces of all current goroutines.", inputSchema: z.object({ "debug": z.number().int().default(1) }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "query", name: "debug" }], stream: false, inputSchemaHash: "307948a1b094666db0b97ed3ff166138e7b3554b24ca7a36f94daa06ec205c94", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
16
+ { name: "woodpecker_get_pprof_heap_dump_sampling_memory_allocations_live_objects", method: "GET", path: "/debug/pprof/heap", description: "Use this when an agent needs to get pprof heap dump, a sampling of memory allocations of live objects.", inputSchema: z.object({ "gc": z.string().default("") }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "query", name: "gc" }], stream: false, inputSchemaHash: "8877d34a6663d99008691d77efb6fbae2a271cff6721bd80aac9804b03b40b1c", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
17
+ { name: "woodpecker_get_pprof_cpu_profile", method: "GET", path: "/debug/pprof/profile", description: "Use this when an agent needs to get pprof cpu profile.", inputSchema: z.object({ "seconds": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "query", name: "seconds" }], stream: false, inputSchemaHash: "a2f3c824d086203aea3614fdbffb585474b708aafc764e9501f18aec0ed9cf8a", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
18
+ { name: "woodpecker_get_pprof_program_counters_mapping_function_names", method: "GET", path: "/debug/pprof/symbol", description: "Use this when an agent needs to get pprof program counters mapping to function names.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
19
+ { name: "woodpecker_get_pprof_program_counters_mapping_function_names_post_debug_pprof_symbol", method: "POST", path: "/debug/pprof/symbol", description: "Use this when an agent needs to get pprof program counters mapping to function names.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
20
+ { name: "woodpecker_get_pprof_stack_traces_that_led_creation_new_os_threads", method: "GET", path: "/debug/pprof/threadcreate", description: "Use this when an agent needs to get pprof stack traces that led to the creation of new os threads.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
21
+ { name: "woodpecker_get_trace_execution_current_program", method: "GET", path: "/debug/pprof/trace", description: "Use this when an agent needs to get a trace of execution of the current program.", inputSchema: z.object({ "seconds": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "query", name: "seconds" }], stream: false, inputSchemaHash: "a2f3c824d086203aea3614fdbffb585474b708aafc764e9501f18aec0ed9cf8a", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
22
+ { name: "woodpecker_list_forges", method: "GET", path: "/forges", description: "Use this when an agent needs to list forges.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "15cd54567c47ae8f7a0ee76915897ee0cd0d8f24840b281a73940fa7248b88cd", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
23
+ { name: "woodpecker_create_new_forge", method: "POST", path: "/forges", description: "Use this when an agent needs to create a new forge.", inputSchema: z.object({ body: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_client_secret": z.string().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }) }), responseSchema: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "9e3f026519c89f5bb0a65d1728d30c1740451d84fe612180a586208662169885", responseSchemaHash: "8fbc02ae6d71409ca3a8fd0b6f98b3bbe458fcbc01ed90fa355e595808f305fb", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
24
+ { name: "woodpecker_delete_forge", method: "DELETE", path: "/forges/{forge_id}", description: "Use this when an agent needs to delete a forge.", inputSchema: z.object({ "forge_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "forge_id" }], stream: false, inputSchemaHash: "3529d520df7b3ec2ed1deafa0a1a7a6fa9cb073372b7387eea0174d8b7f18426", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
25
+ { name: "woodpecker_get_forge", method: "GET", path: "/forges/{forge_id}", description: "Use this when an agent needs to get a forge.", inputSchema: z.object({ "forge_id": z.number().int() }), responseSchema: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "forge_id" }], stream: false, inputSchemaHash: "3529d520df7b3ec2ed1deafa0a1a7a6fa9cb073372b7387eea0174d8b7f18426", responseSchemaHash: "8fbc02ae6d71409ca3a8fd0b6f98b3bbe458fcbc01ed90fa355e595808f305fb", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
26
+ { name: "woodpecker_update_forge", method: "PATCH", path: "/forges/{forge_id}", description: "Use this when an agent needs to update a forge.", inputSchema: z.object({ "forge_id": z.number().int(), body: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_client_secret": z.string().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }) }), responseSchema: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "forge_id" }], stream: false, inputSchemaHash: "8dcafb0276e9bf76f970c270cf6380c230792f5fbc1b6eb825558065362f088c", responseSchemaHash: "8fbc02ae6d71409ca3a8fd0b6f98b3bbe458fcbc01ed90fa355e595808f305fb", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
27
+ { name: "woodpecker_health_information", method: "GET", path: "/healthz", description: "Use this when an agent needs to health information.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
28
+ { name: "woodpecker_incoming_webhook_from_forge", method: "POST", path: "/hook", description: "Use this when an agent needs to incoming webhook from forge.", inputSchema: z.object({ body: z.record(z.string(), z.any()) }), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "799e617e7a2d95d586ac1d164d4812374a9327140108a6c9ad9a9e2b900f759d", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
29
+ { name: "woodpecker_current_log_level", method: "GET", path: "/log-level", description: "Use this when an agent needs to current log level.", inputSchema: z.object({}), responseSchema: z.object({ "log-level": z.string().optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "0840a40e0199716a6eb6dfc24ea38afecd7f700e5b99e08590ad1652d44bd556", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
30
+ { name: "woodpecker_set_log_level", method: "POST", path: "/log-level", description: "Use this when an agent needs to set log level.", inputSchema: z.object({ body: z.object({ "log-level": z.string().optional() }) }), responseSchema: z.object({ "log-level": z.string().optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "c366fb9b894d45535403c39b38c1e8f2d5f4b8b345a51d3fac549db5360733a4", responseSchemaHash: "0840a40e0199716a6eb6dfc24ea38afecd7f700e5b99e08590ad1652d44bd556", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
31
+ { name: "woodpecker_list_organizations", method: "GET", path: "/orgs", description: "Use this when an agent needs to list organizations.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "forge_id": z.number().int().optional(), "id": z.number().int().optional(), "is_user": z.boolean().optional(), "name": z.string().optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "bbba6ef3195d0c3038d03bef5376d01c42641783957d30a41b82fc1a000d588b", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
32
+ { name: "woodpecker_lookup_organization_full_name", method: "GET", path: "/orgs/lookup/{org_full_name}", description: "Use this when an agent needs to lookup an organization by full name.", inputSchema: z.object({ "org_full_name": z.string() }), responseSchema: z.object({ "forge_id": z.number().int().optional(), "id": z.number().int().optional(), "is_user": z.boolean().optional(), "name": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_full_name" }], stream: false, inputSchemaHash: "2e6af9f95da38e821b240321a00a20a1db988303d30a8ec178067e1b834c6b1b", responseSchemaHash: "cf2f156a5b82d26f7ee3bfde65da2c1a7553a8bf12dba728875aea1d9bd474d1", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
33
+ { name: "woodpecker_delete_organization", method: "DELETE", path: "/orgs/{org_id}", description: "Use this when an agent needs to delete an organization.", inputSchema: z.object({ "org_id": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "c3576f7b88063be3fc09a9263f3cd605d21c25504b6bb6883f34d08e4b148cf2", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
34
+ { name: "woodpecker_get_organization", method: "GET", path: "/orgs/{org_id}", description: "Use this when an agent needs to get an organization.", inputSchema: z.object({ "org_id": z.string() }), responseSchema: z.array(z.object({ "forge_id": z.number().int().optional(), "id": z.number().int().optional(), "is_user": z.boolean().optional(), "name": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "c3576f7b88063be3fc09a9263f3cd605d21c25504b6bb6883f34d08e4b148cf2", responseSchemaHash: "bbba6ef3195d0c3038d03bef5376d01c42641783957d30a41b82fc1a000d588b", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
35
+ { name: "woodpecker_list_agents_organization", method: "GET", path: "/orgs/{org_id}/agents", description: "Use this when an agent needs to list agents for an organization.", inputSchema: z.object({ "org_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "50be11b10c15ea92e8fd0a670b0b74d2705eb0c1513858bcbab79dd55d3e6da5", responseSchemaHash: "4d164d2b21c141d95c25f26e37ef7e1a1d623ff4223feb712ebaf9086a36ce60", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
36
+ { name: "woodpecker_create_new_organization_scoped_agent", method: "POST", path: "/orgs/{org_id}/agents", description: "Use this when an agent needs to create a new organization-scoped agent.", inputSchema: z.object({ "org_id": z.number().int(), body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "2a001703dcf1eefeee7825e1307e4fcf1702fba223f3fe78cce4339bf2fb9ddc", responseSchemaHash: "2064eba7c43b0d47677d244e347c275085db7b6a66b4922468a0db09dfb56579", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
37
+ { name: "woodpecker_delete_organization_scoped_agent", method: "DELETE", path: "/orgs/{org_id}/agents/{agent_id}", description: "Use this when an agent needs to delete an organization-scoped agent.", inputSchema: z.object({ "org_id": z.number().int(), "agent_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "55c6a22508f196272ccef291998599019c87f59b743bc3a9596c6593d02b7953", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
38
+ { name: "woodpecker_update_organization_scoped_agent", method: "PATCH", path: "/orgs/{org_id}/agents/{agent_id}", description: "Use this when an agent needs to update an organization-scoped agent.", inputSchema: z.object({ "org_id": z.number().int(), "agent_id": z.number().int(), body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "token": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "ab7ae72851afea53cbd9e758871b640db918130bcab7b0a0f8d07129550399f0", responseSchemaHash: "2064eba7c43b0d47677d244e347c275085db7b6a66b4922468a0db09dfb56579", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
39
+ { name: "woodpecker_get_permissions_currently_authenticated_user_given_organization", method: "GET", path: "/orgs/{org_id}/permissions", description: "Use this when an agent needs to get the permissions of the currently authenticated user for the given organization.", inputSchema: z.object({ "org_id": z.string() }), responseSchema: z.array(z.object({ "admin": z.boolean().optional(), "member": z.boolean().optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "c3576f7b88063be3fc09a9263f3cd605d21c25504b6bb6883f34d08e4b148cf2", responseSchemaHash: "3f4403ca175dcde5ddf95e6f9450ccdc677ffedc153bb340fe4f689452760485", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
40
+ { name: "woodpecker_list_organization_registries", method: "GET", path: "/orgs/{org_id}/registries", description: "Use this when an agent needs to list organization registries.", inputSchema: z.object({ "org_id": z.string(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "b0ba688263fc6f4ba53df342926ec98757d53cd9ff7a5f6071074537c579a94e", responseSchemaHash: "e19675119dbe6e35a855e1d70ceb979eda348a1d18c123f32bc0070d16184f75", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
41
+ { name: "woodpecker_create_organization_registry", method: "POST", path: "/orgs/{org_id}/registries", description: "Use this when an agent needs to create an organization registry.", inputSchema: z.object({ "org_id": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "48d99858a485f0963e77eeb3f9b586e4088f70f52528ab39b606ee12d70d3613", responseSchemaHash: "c92136c8df57d5748307ac4d555bddc9edcb295910f34f56c650721071b12f71", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
42
+ { name: "woodpecker_delete_organization_registry_name", method: "DELETE", path: "/orgs/{org_id}/registries/{registry}", description: "Use this when an agent needs to delete an organization registry by name.", inputSchema: z.object({ "org_id": z.string(), "registry": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "9cf9e295e438bee0067d44217d5df0f57f5c6da7ad56e9bf886d008a12cf9b79", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
43
+ { name: "woodpecker_get_organization_registry_address", method: "GET", path: "/orgs/{org_id}/registries/{registry}", description: "Use this when an agent needs to get a organization registry by address.", inputSchema: z.object({ "org_id": z.string(), "registry": z.string() }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "9cf9e295e438bee0067d44217d5df0f57f5c6da7ad56e9bf886d008a12cf9b79", responseSchemaHash: "c92136c8df57d5748307ac4d555bddc9edcb295910f34f56c650721071b12f71", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
44
+ { name: "woodpecker_update_organization_registry_name", method: "PATCH", path: "/orgs/{org_id}/registries/{registry}", description: "Use this when an agent needs to update an organization registry by name.", inputSchema: z.object({ "org_id": z.string(), "registry": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "3f095d389ed27f316a1a69bf6273619cd681a5e9b7d6fd50f161f4060a07b2c7", responseSchemaHash: "c92136c8df57d5748307ac4d555bddc9edcb295910f34f56c650721071b12f71", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
45
+ { name: "woodpecker_list_organization_secrets", method: "GET", path: "/orgs/{org_id}/secrets", description: "Use this when an agent needs to list organization secrets.", inputSchema: z.object({ "org_id": z.string(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "b0ba688263fc6f4ba53df342926ec98757d53cd9ff7a5f6071074537c579a94e", responseSchemaHash: "2bf48f539233ed5c56e723c042964209d4f5185bbbac3a08df5ad1e7aa04d513", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
46
+ { name: "woodpecker_create_organization_secret", method: "POST", path: "/orgs/{org_id}/secrets", description: "Use this when an agent needs to create an organization secret.", inputSchema: z.object({ "org_id": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "9986a827772b0fcb86ad97820be2d2dae1e2e4530c894884e08359fd5dded9ae", responseSchemaHash: "8eb446007ac0169f2097884a612ddc3a784c31eefde679954a3584ae0b92a14c", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
47
+ { name: "woodpecker_delete_organization_secret_name", method: "DELETE", path: "/orgs/{org_id}/secrets/{secret}", description: "Use this when an agent needs to delete an organization secret by name.", inputSchema: z.object({ "org_id": z.string(), "secret": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "secret" }], stream: false, inputSchemaHash: "97bcc9d248643cbecd14dfb03bc9d69b05e96aba0846764f7ec68947cf328ea5", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
48
+ { name: "woodpecker_get_organization_secret_name", method: "GET", path: "/orgs/{org_id}/secrets/{secret}", description: "Use this when an agent needs to get a organization secret by name.", inputSchema: z.object({ "org_id": z.string(), "secret": z.string() }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "secret" }], stream: false, inputSchemaHash: "97bcc9d248643cbecd14dfb03bc9d69b05e96aba0846764f7ec68947cf328ea5", responseSchemaHash: "8eb446007ac0169f2097884a612ddc3a784c31eefde679954a3584ae0b92a14c", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
49
+ { name: "woodpecker_update_organization_secret_name", method: "PATCH", path: "/orgs/{org_id}/secrets/{secret}", description: "Use this when an agent needs to update an organization secret by name.", inputSchema: z.object({ "org_id": z.string(), "secret": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "secret" }], stream: false, inputSchemaHash: "5fcdb181b50c6aedac49c6f16346836483374744cbb42a9dd231b555eb0e29c9", responseSchemaHash: "8eb446007ac0169f2097884a612ddc3a784c31eefde679954a3584ae0b92a14c", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
50
+ { name: "woodpecker_list_pipelines_in_queue", method: "GET", path: "/pipelines", description: "Use this when an agent needs to list pipelines in queue.", inputSchema: z.object({}), responseSchema: z.array(z.object({ "author": z.string().optional(), "author_avatar": z.string().optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "finished": z.number().int().optional(), "full_name": z.string().optional(), "id": z.number().int().optional(), "message": z.string().describe("// Deprecated").optional(), "number": z.number().int().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "repo_id": z.number().int().optional(), "started": z.number().int().optional(), "status": z.string().optional(), "tag_title": z.string().optional(), "title": z.string().optional() })), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "baee75469b6396066081044fa961f96ac14ea9ed1fa006c076fee7729320c240", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
51
+ { name: "woodpecker_get_pipeline_queue_information", method: "GET", path: "/queue/info", description: "Use this when an agent needs to get pipeline queue information.", inputSchema: z.object({}), responseSchema: z.object({ "paused": z.boolean().optional(), "pending": z.array(z.object({ "agent_id": z.number().int().optional(), "agent_name": z.string().optional(), "concurrency_group": z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies.").optional(), "concurrency_limit": z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited.").optional(), "created": z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines.").optional(), "dep_status": z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])).optional(), "dependencies": z.array(z.string()).optional(), "id": z.string().optional(), "labels": z.record(z.string(), z.string()).optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "pipeline_number": z.number().int().optional(), "repo_id": z.number().int().optional(), "run_on": z.array(z.string()).optional() })).optional(), "running": z.array(z.object({ "agent_id": z.number().int().optional(), "agent_name": z.string().optional(), "concurrency_group": z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies.").optional(), "concurrency_limit": z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited.").optional(), "created": z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines.").optional(), "dep_status": z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])).optional(), "dependencies": z.array(z.string()).optional(), "id": z.string().optional(), "labels": z.record(z.string(), z.string()).optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "pipeline_number": z.number().int().optional(), "repo_id": z.number().int().optional(), "run_on": z.array(z.string()).optional() })).optional(), "stats": z.object({ "pending_count": z.number().int().optional(), "running_count": z.number().int().optional(), "waiting_on_deps_count": z.number().int().optional(), "worker_count": z.number().int().optional() }).optional(), "waiting_on_deps": z.array(z.object({ "agent_id": z.number().int().optional(), "agent_name": z.string().optional(), "concurrency_group": z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies.").optional(), "concurrency_limit": z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited.").optional(), "created": z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines.").optional(), "dep_status": z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])).optional(), "dependencies": z.array(z.string()).optional(), "id": z.string().optional(), "labels": z.record(z.string(), z.string()).optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "pipeline_number": z.number().int().optional(), "repo_id": z.number().int().optional(), "run_on": z.array(z.string()).optional() })).optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "efbdfab476b0c9a3dab457679428f5481f62537bc908c3c9b7574dcbc4e7ee31", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
52
+ { name: "woodpecker_block_til_pipeline_queue_has_running_item", method: "GET", path: "/queue/norunningpipelines", description: "Use this when an agent needs to block til pipeline queue has a running item.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
53
+ { name: "woodpecker_pause_pipeline_queue", method: "POST", path: "/queue/pause", description: "Use this when an agent needs to pause the pipeline queue.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
54
+ { name: "woodpecker_resume_pipeline_queue", method: "POST", path: "/queue/resume", description: "Use this when an agent needs to resume the pipeline queue.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
55
+ { name: "woodpecker_list_global_registries", method: "GET", path: "/registries", description: "Use this when an agent needs to list global registries.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "e19675119dbe6e35a855e1d70ceb979eda348a1d18c123f32bc0070d16184f75", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
56
+ { name: "woodpecker_create_global_registry", method: "POST", path: "/registries", description: "Use this when an agent needs to create a global registry.", inputSchema: z.object({ body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "4f60b389568a4633910456331182f3ecf74c28cfd316f8e5d1db80e74f8cd7bb", responseSchemaHash: "c92136c8df57d5748307ac4d555bddc9edcb295910f34f56c650721071b12f71", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
57
+ { name: "woodpecker_delete_global_registry_name", method: "DELETE", path: "/registries/{registry}", description: "Use this when an agent needs to delete a global registry by name.", inputSchema: z.object({ "registry": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "registry" }], stream: false, inputSchemaHash: "40f92513f6d4dc3b1898f61d72899a03600dd35fd4feffe96acda3eef2119d65", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
58
+ { name: "woodpecker_get_global_registry_name", method: "GET", path: "/registries/{registry}", description: "Use this when an agent needs to get a global registry by name.", inputSchema: z.object({ "registry": z.string() }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "registry" }], stream: false, inputSchemaHash: "40f92513f6d4dc3b1898f61d72899a03600dd35fd4feffe96acda3eef2119d65", responseSchemaHash: "c92136c8df57d5748307ac4d555bddc9edcb295910f34f56c650721071b12f71", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
59
+ { name: "woodpecker_update_global_registry_name", method: "PATCH", path: "/registries/{registry}", description: "Use this when an agent needs to update a global registry by name.", inputSchema: z.object({ "registry": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "registry" }], stream: false, inputSchemaHash: "464594b73a3c69b2c088c82b8c0cccb704cbe9542220dd431fb14124043b07ad", responseSchemaHash: "c92136c8df57d5748307ac4d555bddc9edcb295910f34f56c650721071b12f71", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
60
+ { name: "woodpecker_list_all_repositories_on_server", method: "GET", path: "/repos", description: "Use this when an agent needs to list all repositories on the server.", inputSchema: z.object({ "active": z.boolean().optional(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "active" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "c6face9680432048ef73dd248680eaf090aeb816a55de1b5a269aceb9ca97002", responseSchemaHash: "b6389dfe98cfcf70b75fa1c6b5c629cbda87a7131f76bbc776a2ced95667b382", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
61
+ { name: "woodpecker_activate_repository", method: "POST", path: "/repos", description: "Use this when an agent needs to activate a repository.", inputSchema: z.object({ "forge_remote_id": z.string() }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "query", name: "forge_remote_id" }], stream: false, inputSchemaHash: "984f3e0fba61450a396e04ff1025d6f755e2f727fa11053a4f2c2cc07f637f56", responseSchemaHash: "fe6e35e5f4cf3952d4833f099e6d8c405c9ee8846e1f0f2533142304cba2dbaf", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
62
+ { name: "woodpecker_lookup_repository_full_name", method: "GET", path: "/repos/lookup/{repo_full_name}", description: "Use this when an agent needs to lookup a repository by full name.", inputSchema: z.object({ "repo_full_name": z.string() }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_full_name" }], stream: false, inputSchemaHash: "dff967441cec49b0181ebcc9ac2d7e470df589f0c467dd09d7899c824add0aa0", responseSchemaHash: "fe6e35e5f4cf3952d4833f099e6d8c405c9ee8846e1f0f2533142304cba2dbaf", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
63
+ { name: "woodpecker_repair_all_repositories_on_server", method: "POST", path: "/repos/repair", description: "Use this when an agent needs to repair all repositories on the server.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
64
+ { name: "woodpecker_delete_repository", method: "DELETE", path: "/repos/{repo_id}", description: "Use this when an agent needs to delete a repository.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "fe6e35e5f4cf3952d4833f099e6d8c405c9ee8846e1f0f2533142304cba2dbaf", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
65
+ { name: "woodpecker_get_repository", method: "GET", path: "/repos/{repo_id}", description: "Use this when an agent needs to get a repository.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "fe6e35e5f4cf3952d4833f099e6d8c405c9ee8846e1f0f2533142304cba2dbaf", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
66
+ { name: "woodpecker_update_repository", method: "PATCH", path: "/repos/{repo_id}", description: "Use this when an agent needs to update a repository.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.string().optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.string().optional() }) }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "99d14c0d1752c734a8922959bcb1e24f57a1e87e1454026d091e4c2df471978e", responseSchemaHash: "fe6e35e5f4cf3952d4833f099e6d8c405c9ee8846e1f0f2533142304cba2dbaf", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
67
+ { name: "woodpecker_get_branches_repository", method: "GET", path: "/repos/{repo_id}/branches", description: "Use this when an agent needs to get branches of a repository.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.string()), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "e83809d8a2201fd0d5c4788c4044d97725eb053136cc6678db6ee92889b94018", responseSchemaHash: "2000ba4632f98bde4c5a0c2482bf604638b912b1a43b66cc655c6ff22f765718", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
68
+ { name: "woodpecker_change_repository_s_owner_currently_authenticated_user", method: "POST", path: "/repos/{repo_id}/chown", description: "Use this when an agent needs to change a repository's owner to the currently authenticated user.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "fe6e35e5f4cf3952d4833f099e6d8c405c9ee8846e1f0f2533142304cba2dbaf", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
69
+ { name: "woodpecker_list_cron_jobs", method: "GET", path: "/repos/{repo_id}/cron", description: "Use this when an agent needs to list cron jobs.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "e83809d8a2201fd0d5c4788c4044d97725eb053136cc6678db6ee92889b94018", responseSchemaHash: "b2f34b880786ecca6cc09b5a3563e7fd8994e5c29f968ce07ec5783fe013944c", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
70
+ { name: "woodpecker_create_cron_job", method: "POST", path: "/repos/{repo_id}/cron", description: "Use this when an agent needs to create a cron job.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }) }), responseSchema: z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "3ecf89d008d143343ba753a8e466f1cd944690d6d2b55ea0ddc0963d5c4dd009", responseSchemaHash: "0d508caf144bc220780270b3412f7f2da463b7011b435a3981ed486cf2462dba", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
71
+ { name: "woodpecker_delete_cron_job", method: "DELETE", path: "/repos/{repo_id}/cron/{cron}", description: "Use this when an agent needs to delete a cron job.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, inputSchemaHash: "b6c61d2c610ade79f5c4b15c6fea2f42193de208fc69335617ebad94aee6d452", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
72
+ { name: "woodpecker_get_cron_job", method: "GET", path: "/repos/{repo_id}/cron/{cron}", description: "Use this when an agent needs to get a cron job.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string() }), responseSchema: z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, inputSchemaHash: "b6c61d2c610ade79f5c4b15c6fea2f42193de208fc69335617ebad94aee6d452", responseSchemaHash: "0d508caf144bc220780270b3412f7f2da463b7011b435a3981ed486cf2462dba", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
73
+ { name: "woodpecker_update_cron_job", method: "PATCH", path: "/repos/{repo_id}/cron/{cron}", description: "Use this when an agent needs to update a cron job.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string(), body: z.object({ "branch": z.string().optional(), "enabled": z.boolean().optional(), "name": z.string().optional(), "schedule": z.string().optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }) }), responseSchema: z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, inputSchemaHash: "3dc4f5fd6c884dd5297cf9f1f24ee96b7ed13139c21018676837a1dee47b522a", responseSchemaHash: "0d508caf144bc220780270b3412f7f2da463b7011b435a3981ed486cf2462dba", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
74
+ { name: "woodpecker_start_cron_job_now", method: "POST", path: "/repos/{repo_id}/cron/{cron}", description: "Use this when an agent needs to start a cron job now.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string() }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, inputSchemaHash: "b6c61d2c610ade79f5c4b15c6fea2f42193de208fc69335617ebad94aee6d452", responseSchemaHash: "808fbde466553120a7ee2be9d4c595b76a4b6ec8f48427ede33dd6a54167c122", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
75
+ { name: "woodpecker_deletes_all_logs_pipeline", method: "DELETE", path: "/repos/{repo_id}/logs/{pipeline_number}", description: "Use this when an agent needs to deletes all logs of a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
76
+ { name: "woodpecker_delete_step_logs_pipeline", method: "DELETE", path: "/repos/{repo_id}/logs/{pipeline_number}/{step_id}", description: "Use this when an agent needs to delete step logs of a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "step_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "path", name: "step_id" }], stream: false, inputSchemaHash: "54e147f353c7fa8cfe3c46b33cf52abe47db90b9012f68876ffcc0d5b9d97f09", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
77
+ { name: "woodpecker_get_logs_pipeline_step", method: "GET", path: "/repos/{repo_id}/logs/{pipeline_number}/{step_id}", description: "Use this when an agent needs to get logs for a pipeline step.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "step_id": z.number().int() }), responseSchema: z.array(z.object({ "data": z.array(z.number().int()).optional(), "id": z.number().int().optional(), "line": z.number().int().optional(), "step_id": z.number().int().optional(), "time": z.number().int().optional(), "type": z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4)]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "path", name: "step_id" }], stream: false, inputSchemaHash: "54e147f353c7fa8cfe3c46b33cf52abe47db90b9012f68876ffcc0d5b9d97f09", responseSchemaHash: "9844bf2d32a0d761b04cc5c5cf7e5df481b8c59ff9f4a1255a48d7c138b44606", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
78
+ { name: "woodpecker_download_logs_pipeline_step", method: "GET", path: "/repos/{repo_id}/logs/{pipeline_number}/{step_id}/download", description: "Use this when an agent needs to download logs for a pipeline step.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "step_id": z.number().int() }), responseSchema: z.string(), responseKind: "text", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "path", name: "step_id" }], stream: false, inputSchemaHash: "54e147f353c7fa8cfe3c46b33cf52abe47db90b9012f68876ffcc0d5b9d97f09", responseSchemaHash: "6707424af03d5eaeea59971cf28ed28dcd9a8b064ce0307119036bd8c7676391", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
79
+ { name: "woodpecker_move_repository_new_owner", method: "POST", path: "/repos/{repo_id}/move", description: "Use this when an agent needs to move a repository to a new owner.", inputSchema: z.object({ "repo_id": z.number().int(), "to": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "to" }], stream: false, inputSchemaHash: "306994ee4e822c3a50e7a6d90aecac37c5acb7e5525d59365c0a355ddba7cc93", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
80
+ { name: "woodpecker_check_current_authenticated_users_access_repository", method: "GET", path: "/repos/{repo_id}/permissions", description: "Use this when an agent needs to check current authenticated users access to the repository.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "admin": z.boolean().optional(), "created": z.number().int().optional(), "pull": z.boolean().optional(), "push": z.boolean().optional(), "synced": z.number().int().optional(), "updated": z.number().int().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "9342aae5a9a3ce5be94622c67db2c76d27884df082db27ece14c7cfb72d11ab3", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
81
+ { name: "woodpecker_list_repository_pipelines", method: "GET", path: "/repos/{repo_id}/pipelines", description: "Use this when an agent needs to list repository pipelines.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50), "before": z.string().optional(), "after": z.string().optional(), "branch": z.string().optional(), "event": z.string().optional(), "ref": z.string().optional(), "status": z.string().optional() }), responseSchema: z.array(z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }, { location: "query", name: "before" }, { location: "query", name: "after" }, { location: "query", name: "branch" }, { location: "query", name: "event" }, { location: "query", name: "ref" }, { location: "query", name: "status" }], stream: false, inputSchemaHash: "eeb6bd35d22a63896f8701bd5e876c26822a93052c733d44384de935f3c316aa", responseSchemaHash: "8721265cf8575cbadecc1b7c264cbe8d15785c16c54a1a768712be6b5ab7de77", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
82
+ { name: "woodpecker_trigger_manual_pipeline", method: "POST", path: "/repos/{repo_id}/pipelines", description: "Use this when an agent needs to trigger a manual pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "branch": z.string().optional(), "message": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }) }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "3ec9a3a0578f2f0e761adc9b51d1bb5b07975299e87462f10943dafb4f1d5d4e", responseSchemaHash: "808fbde466553120a7ee2be9d4c595b76a4b6ec8f48427ede33dd6a54167c122", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
83
+ { name: "woodpecker_delete_pipeline", method: "DELETE", path: "/repos/{repo_id}/pipelines/{pipeline_number}", description: "Use this when an agent needs to delete a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
84
+ { name: "woodpecker_get_repositories_pipeline", method: "GET", path: "/repos/{repo_id}/pipelines/{pipeline_number}", description: "Use this when an agent needs to get a repositories pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "808fbde466553120a7ee2be9d4c595b76a4b6ec8f48427ede33dd6a54167c122", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
85
+ { name: "woodpecker_restart_pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}", description: "Use this when an agent needs to restart a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "event": z.string().optional(), "deploy_to": z.string().optional() }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "query", name: "event" }, { location: "query", name: "deploy_to" }], stream: false, inputSchemaHash: "890bf7ddd02935303f65b322b1f28a14a93dded45c28270223cc6b8b05ad6a3c", responseSchemaHash: "808fbde466553120a7ee2be9d4c595b76a4b6ec8f48427ede33dd6a54167c122", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
86
+ { name: "woodpecker_approve_and_start_pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}/approve", description: "Use this when an agent needs to approve and start a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "808fbde466553120a7ee2be9d4c595b76a4b6ec8f48427ede33dd6a54167c122", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
87
+ { name: "woodpecker_cancel_pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}/cancel", description: "Use this when an agent needs to cancel a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
88
+ { name: "woodpecker_get_configuration_files_pipeline", method: "GET", path: "/repos/{repo_id}/pipelines/{pipeline_number}/config", description: "Use this when an agent needs to get configuration files for a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.array(z.object({ "data": z.array(z.number().int()).optional(), "hash": z.string().optional(), "name": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "353459b8a4e68056230b0d0b8ed816745d2d25ea29d864b550363fcbe982a65a", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
89
+ { name: "woodpecker_decline_pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}/decline", description: "Use this when an agent needs to decline a pipeline.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "808fbde466553120a7ee2be9d4c595b76a4b6ec8f48427ede33dd6a54167c122", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
90
+ { name: "woodpecker_get_metadata_pipeline_or_specific_workflow_including_previous_pipeline_info", method: "GET", path: "/repos/{repo_id}/pipelines/{pipeline_number}/metadata", description: "Use this when an agent needs to get metadata for a pipeline or a specific workflow, including previous pipeline info.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "curr": z.object({ "author": z.string().optional(), "avatar": z.string().optional(), "commit": z.object({ "author": z.object({ "email": z.string().optional(), "name": z.string().optional() }).optional(), "branch": z.string().optional(), "changed_files": z.array(z.string()).optional(), "draft": z.boolean().optional(), "labels": z.array(z.string()).optional(), "message": z.string().optional(), "milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "sha": z.string().optional(), "timestamp": z.number().int().optional() }).optional(), "created": z.number().int().optional(), "cron": z.string().optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).optional(), "rerun_count": z.number().int().optional(), "started": z.number().int().optional(), "status": z.string().optional(), "target": z.string().optional(), "task": z.string().optional() }).optional(), "forge": z.object({ "type": z.string().optional(), "url": z.string().optional() }).optional(), "id": z.string().optional(), "prev": z.object({ "author": z.string().optional(), "avatar": z.string().optional(), "commit": z.object({ "author": z.object({ "email": z.string().optional(), "name": z.string().optional() }).optional(), "branch": z.string().optional(), "changed_files": z.array(z.string()).optional(), "draft": z.boolean().optional(), "labels": z.array(z.string()).optional(), "message": z.string().optional(), "milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "sha": z.string().optional(), "timestamp": z.number().int().optional() }).optional(), "created": z.number().int().optional(), "cron": z.string().optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).optional(), "rerun_count": z.number().int().optional(), "started": z.number().int().optional(), "status": z.string().optional(), "target": z.string().optional(), "task": z.string().optional() }).optional(), "repo": z.object({ "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "default_branch": z.string().optional(), "forge_url": z.string().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "private": z.boolean().optional(), "remote_id": z.string().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional() }).optional(), "step": z.object({ "name": z.string().optional(), "number": z.number().int().optional() }).optional(), "sys": z.object({ "arch": z.string().optional(), "host": z.string().optional(), "name": z.string().optional(), "url": z.string().optional(), "version": z.string().optional() }).optional(), "workflow": z.object({ "matrix": z.record(z.string(), z.string()).optional(), "name": z.string().optional(), "number": z.number().int().optional() }).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "1760384a5e7ab50c334d000c04a4e7923fc075e2dd2da5cec979fe30f5d043af", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
91
+ { name: "woodpecker_list_active_pull_requests_repository", method: "GET", path: "/repos/{repo_id}/pull_requests", description: "Use this when an agent needs to list active pull requests of a repository.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "index": z.string().optional(), "title": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "e83809d8a2201fd0d5c4788c4044d97725eb053136cc6678db6ee92889b94018", responseSchemaHash: "1ffca730f6367675ecbbc50c4be87cc339591bbddaecd8f72c136462eaf5fcd7", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
92
+ { name: "woodpecker_list_registries", method: "GET", path: "/repos/{repo_id}/registries", description: "Use this when an agent needs to list registries.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "e83809d8a2201fd0d5c4788c4044d97725eb053136cc6678db6ee92889b94018", responseSchemaHash: "e19675119dbe6e35a855e1d70ceb979eda348a1d18c123f32bc0070d16184f75", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
93
+ { name: "woodpecker_create_registry", method: "POST", path: "/repos/{repo_id}/registries", description: "Use this when an agent needs to create a registry.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "bc29798f963cea6e7ac6387e78321b29a06094f59f836c99744cf696f0a1d00f", responseSchemaHash: "c92136c8df57d5748307ac4d555bddc9edcb295910f34f56c650721071b12f71", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
94
+ { name: "woodpecker_delete_registry_name", method: "DELETE", path: "/repos/{repo_id}/registries/{registry}", description: "Use this when an agent needs to delete a registry by name.", inputSchema: z.object({ "repo_id": z.number().int(), "registry": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "f19bdc385342016f93f5423c72d74586cd8e470cac7a5a4abb3a22ec562963c1", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
95
+ { name: "woodpecker_get_registry_name", method: "GET", path: "/repos/{repo_id}/registries/{registry}", description: "Use this when an agent needs to get a registry by name.", inputSchema: z.object({ "repo_id": z.number().int(), "registry": z.string() }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "f19bdc385342016f93f5423c72d74586cd8e470cac7a5a4abb3a22ec562963c1", responseSchemaHash: "c92136c8df57d5748307ac4d555bddc9edcb295910f34f56c650721071b12f71", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
96
+ { name: "woodpecker_update_registry_name", method: "PATCH", path: "/repos/{repo_id}/registries/{registry}", description: "Use this when an agent needs to update a registry by name.", inputSchema: z.object({ "repo_id": z.number().int(), "registry": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "c78b7fc0c4da004df5913a6fa452cb21f2ae8497c2bb8a9a57bc87072c7f58ba", responseSchemaHash: "c92136c8df57d5748307ac4d555bddc9edcb295910f34f56c650721071b12f71", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
97
+ { name: "woodpecker_repair_repository", method: "POST", path: "/repos/{repo_id}/repair", description: "Use this when an agent needs to repair a repository.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
98
+ { name: "woodpecker_list_repository_secrets", method: "GET", path: "/repos/{repo_id}/secrets", description: "Use this when an agent needs to list repository secrets.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "e83809d8a2201fd0d5c4788c4044d97725eb053136cc6678db6ee92889b94018", responseSchemaHash: "2bf48f539233ed5c56e723c042964209d4f5185bbbac3a08df5ad1e7aa04d513", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
99
+ { name: "woodpecker_create_repository_secret", method: "POST", path: "/repos/{repo_id}/secrets", description: "Use this when an agent needs to create a repository secret.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "c2319619bb897d986ba7fd9158ff63b0cc0efd53beed3036c5159c767feaddf2", responseSchemaHash: "8eb446007ac0169f2097884a612ddc3a784c31eefde679954a3584ae0b92a14c", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
100
+ { name: "woodpecker_delete_repository_secret_name", method: "DELETE", path: "/repos/{repo_id}/secrets/{secretName}", description: "Use this when an agent needs to delete a repository secret by name.", inputSchema: z.object({ "repo_id": z.number().int(), "secretName": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "secretName" }], stream: false, inputSchemaHash: "3ccc19ffdca8c66004694bf11e082be9b98b4e576eef27b2c3bf00a021ea9359", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
101
+ { name: "woodpecker_get_repository_secret_name", method: "GET", path: "/repos/{repo_id}/secrets/{secretName}", description: "Use this when an agent needs to get a repository secret by name.", inputSchema: z.object({ "repo_id": z.number().int(), "secretName": z.string() }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "secretName" }], stream: false, inputSchemaHash: "3ccc19ffdca8c66004694bf11e082be9b98b4e576eef27b2c3bf00a021ea9359", responseSchemaHash: "8eb446007ac0169f2097884a612ddc3a784c31eefde679954a3584ae0b92a14c", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
102
+ { name: "woodpecker_update_repository_secret_name", method: "PATCH", path: "/repos/{repo_id}/secrets/{secretName}", description: "Use this when an agent needs to update a repository secret by name.", inputSchema: z.object({ "repo_id": z.number().int(), "secretName": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "secretName" }], stream: false, inputSchemaHash: "08b25d44e4f5f40287298b14b78d4f0263b831a2fb65871545222a08bc5606d4", responseSchemaHash: "8eb446007ac0169f2097884a612ddc3a784c31eefde679954a3584ae0b92a14c", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
103
+ { name: "woodpecker_list_global_secrets", method: "GET", path: "/secrets", description: "Use this when an agent needs to list global secrets.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "2bf48f539233ed5c56e723c042964209d4f5185bbbac3a08df5ad1e7aa04d513", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
104
+ { name: "woodpecker_create_global_secret", method: "POST", path: "/secrets", description: "Use this when an agent needs to create a global secret.", inputSchema: z.object({ body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "3446805db9cfd41f14d76b6669b5484ab9678357470e086ae337a96e4ed7d54b", responseSchemaHash: "8eb446007ac0169f2097884a612ddc3a784c31eefde679954a3584ae0b92a14c", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
105
+ { name: "woodpecker_delete_global_secret_name", method: "DELETE", path: "/secrets/{secret}", description: "Use this when an agent needs to delete a global secret by name.", inputSchema: z.object({ "secret": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "secret" }], stream: false, inputSchemaHash: "2c029a5d67471377e0c3cc733dccb1203e4c80f20f8125a9d6043ef0ff87bfef", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
106
+ { name: "woodpecker_get_global_secret_name", method: "GET", path: "/secrets/{secret}", description: "Use this when an agent needs to get a global secret by name.", inputSchema: z.object({ "secret": z.string() }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "secret" }], stream: false, inputSchemaHash: "2c029a5d67471377e0c3cc733dccb1203e4c80f20f8125a9d6043ef0ff87bfef", responseSchemaHash: "8eb446007ac0169f2097884a612ddc3a784c31eefde679954a3584ae0b92a14c", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
107
+ { name: "woodpecker_update_global_secret_name", method: "PATCH", path: "/secrets/{secret}", description: "Use this when an agent needs to update a global secret by name.", inputSchema: z.object({ "secret": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }), responseKind: "json", parameters: [{ location: "path", name: "secret" }], stream: false, inputSchemaHash: "b897bbb3b0aa06d7b8948784404d786a42eb2914b85b59a557cec6269af15e7e", responseSchemaHash: "8eb446007ac0169f2097884a612ddc3a784c31eefde679954a3584ae0b92a14c", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
108
+ { name: "woodpecker_get_server_s_signature_public_key", method: "GET", path: "/signature/public-key", description: "Use this when an agent needs to get server's signature public key.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
109
+ { name: "woodpecker_stream_events_like_pipeline_updates", method: "GET", path: "/stream/events", description: "Use this when an agent needs to stream events like pipeline updates.", inputSchema: z.object({ duration_ms: z.number().int().min(1).max(30000).optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: true, inputSchemaHash: "4be151af5ea94b8032b0ab5f8ea34757935fee87da8afc3bd801ebcf7b3cd608", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
110
+ { name: "woodpecker_stream_logs_pipeline_step", method: "GET", path: "/stream/logs/{repo_id}/{pipeline}/{step_id}", description: "Use this when an agent needs to stream logs of a pipeline step.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline": z.number().int(), "step_id": z.number().int(), duration_ms: z.number().int().min(1).max(30000).optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline" }, { location: "path", name: "step_id" }], stream: true, inputSchemaHash: "f07a5481c47aa2931aebabf0d9a18f755a5dff4dff06d5049727adcb9d964a7d", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
111
+ { name: "woodpecker_get_currently_authenticated_user", method: "GET", path: "/user", description: "Use this when an agent needs to get the currently authenticated user.", inputSchema: z.object({}), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "3e0d2c624af8354286a7eb06e0e957acce14a1532122364ee4cb0b035d19b33f", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
112
+ { name: "woodpecker_get_currently_authenticated_users_pipeline_feed", method: "GET", path: "/user/feed", description: "Use this when an agent needs to get the currently authenticated users pipeline feed.", inputSchema: z.object({}), responseSchema: z.array(z.object({ "author": z.string().optional(), "author_avatar": z.string().optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "finished": z.number().int().optional(), "full_name": z.string().optional(), "id": z.number().int().optional(), "message": z.string().describe("// Deprecated").optional(), "number": z.number().int().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "repo_id": z.number().int().optional(), "started": z.number().int().optional(), "status": z.string().optional(), "tag_title": z.string().optional(), "title": z.string().optional() })), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "baee75469b6396066081044fa961f96ac14ea9ed1fa006c076fee7729320c240", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
113
+ { name: "woodpecker_get_user_s_repositories", method: "GET", path: "/user/repos", description: "Use this when an agent needs to get user's repositories.", inputSchema: z.object({ "all": z.boolean().optional(), "name": z.string().optional() }), responseSchema: z.array(z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "last_pipeline": z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }).optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "all" }, { location: "query", name: "name" }], stream: false, inputSchemaHash: "247449d19cc6dc8f42e65a84ab188d512587e5d581ab479f046fb672fdfc2e56", responseSchemaHash: "3b237bf935b96e17d91414a7d36568fa8a56f2a3aacf27f94c8367ea4dc6753e", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
114
+ { name: "woodpecker_reset_token", method: "DELETE", path: "/user/token", description: "Use this when an agent needs to reset a token.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
115
+ { name: "woodpecker_return_token_current_user_as_string", method: "POST", path: "/user/token", description: "Use this when an agent needs to return the token of the current user as string.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
116
+ { name: "woodpecker_list_users", method: "GET", path: "/users", description: "Use this when an agent needs to list users.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "3dc7f67a1bad8fdc3af0a9b5fc96aeb3a57116571f656aea3f59996367293fa7", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
117
+ { name: "woodpecker_create_user", method: "POST", path: "/users", description: "Use this when an agent needs to create a user.", inputSchema: z.object({ body: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }) }), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "9706f03799be617684bab5eea10180cc63890213acae49b1af45e7c70837d938", responseSchemaHash: "3e0d2c624af8354286a7eb06e0e957acce14a1532122364ee4cb0b035d19b33f", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
118
+ { name: "woodpecker_delete_user", method: "DELETE", path: "/users/{login}", description: "Use this when an agent needs to delete a user.", inputSchema: z.object({ "login": z.string(), "forge_id": z.string(), "forge_remote_id": z.string().optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "login" }, { location: "query", name: "forge_id" }, { location: "query", name: "forge_remote_id" }], stream: false, inputSchemaHash: "e08ff1775904c477bdd3f649793337074b66b69a1def9e2b1636f80c5e3ecc55", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
119
+ { name: "woodpecker_get_user", method: "GET", path: "/users/{login}", description: "Use this when an agent needs to get a user.", inputSchema: z.object({ "login": z.string(), "forge_id": z.string(), "forge_remote_id": z.string().optional() }), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [{ location: "path", name: "login" }, { location: "query", name: "forge_id" }, { location: "query", name: "forge_remote_id" }], stream: false, inputSchemaHash: "e08ff1775904c477bdd3f649793337074b66b69a1def9e2b1636f80c5e3ecc55", responseSchemaHash: "3e0d2c624af8354286a7eb06e0e957acce14a1532122364ee4cb0b035d19b33f", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
120
+ { name: "woodpecker_update_user", method: "PATCH", path: "/users/{login}", description: "Use this when an agent needs to update a user.", inputSchema: z.object({ "login": z.string(), body: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }) }), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [{ location: "path", name: "login" }], stream: false, inputSchemaHash: "df6ff49d0666b054d2d9e98174e0d56376a10e00b43b05a32f32266bf4744e8c", responseSchemaHash: "3e0d2c624af8354286a7eb06e0e957acce14a1532122364ee4cb0b035d19b33f", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
121
+ { name: "woodpecker_get_version", method: "GET", path: "/version", description: "Use this when an agent needs to get version.", inputSchema: z.object({}), responseSchema: z.object({ "source": z.string().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1c685f431fc75ff4b1e6d01a6fffae51df45e5c566f7bcc17943507a9da6093f", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } }
122
122
  ];
123
123
  //# sourceMappingURL=operations.js.map