bb_read_file
Read file content from a Bitbucket repository using the file path, branch, workspace, and repo slug. Retrieve the source code or data needed for review and automation.
Instructions
Read a file from a Bitbucket 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": {
"path": "<path>"
},
"name": "bb_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file within the repository | |
| branch | No | Branch or commit to read from | main |
| repo_slug | No | Repository slug/name; defaults to the repo detected from the current directory's git remote | |
| workspace | No | Bitbucket workspace |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |