trigger-pipeline
Starts a new Bitbucket pipeline run for a specified repository, branch, tag, or commit, with optional environment variables and custom pipeline selectors.
Instructions
Trigger a new pipeline for a repository
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_slug": "<repo_slug>"
},
"name": "trigger-pipeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref_name | No | Name of the branch or tag | |
| ref_type | No | Type of reference (branch or tag) | |
| repo_slug | Yes | Repository slug/name | |
| variables | No | Environment variables for the pipeline (key-value pairs) | |
| workspace | No | Bitbucket workspace name. Falls back to BITBUCKET_WORKSPACE env var if not provided. | |
| commit_hash | No | Full hash of the commit to run the pipeline on | |
| selector_type | No | Type of selector (e.g., 'custom', 'default') | |
| selector_pattern | No | Pattern for the selector (e.g., custom pipeline name) |