get_build_status
Retrieve CI build status for a commit or pull request. Automatically resolve the latest commit when providing a pull request ID, and obtain build state, name, and URL.
Instructions
Get CI build status for a commit or pull request. When prId is provided, automatically resolves the latest commit. Returns build state (SUCCESSFUL, FAILED, INPROGRESS), name, and URL to the CI build.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_build_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | No | Pull request ID. If provided, resolves the latest commit automatically. | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. Only needed with prId. | |
| commitId | No | Full commit hash. Use this or prId, not both. | |
| repository | No | Repository slug. Only needed with prId. |