get_pipeline
Retrieve detailed information about a specific pipeline run in Bitbucket Cloud, including status, steps, and execution data.
Instructions
Get details of a specific pipeline run.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug | |
| pipeline_uuid | Yes | The pipeline UUID |
Implementation Reference
- src/tools/index.ts:1052-1055 (handler)The main handler for the 'get_pipeline' tool in the ToolHandler class. It validates input parameters using the Zod schema and calls the PipelinesAPI.get method to fetch the pipeline details.case 'get_pipeline': { const params = toolSchemas.get_pipeline.parse(args); return this.pipelines.get(params.workspace, params.repo_slug, params.pipeline_uuid); }
- src/tools/index.ts:259-263 (schema)Zod schema definition for input validation of the get_pipeline tool.get_pipeline: z.object({ workspace: z.string().describe('The workspace slug'), repo_slug: z.string().describe('The repository slug'), pipeline_uuid: z.string().describe('The pipeline UUID'), }),
- src/tools/index.ts:789-800 (registration)Registration of the 'get_pipeline' tool in the toolDefinitions array, including MCP-compatible input schema and description.name: 'get_pipeline', description: 'Get details of a specific pipeline run.', inputSchema: { type: 'object' as const, properties: { workspace: { type: 'string', description: 'The workspace slug' }, repo_slug: { type: 'string', description: 'The repository slug' }, pipeline_uuid: { type: 'string', description: 'The pipeline UUID' }, }, required: ['workspace', 'repo_slug', 'pipeline_uuid'], }, },
- src/api/pipelines.ts:26-34 (helper)The PipelinesAPI.get method, which performs the actual API call to retrieve pipeline details from Bitbucket.async get( workspace: string, repo_slug: string, pipeline_uuid: string ): Promise<BitbucketPipeline> { return this.client.get<BitbucketPipeline>( `/repositories/${workspace}/${repo_slug}/pipelines/${pipeline_uuid}` ); }