bb_raw_file
Fetch raw file content from a Bitbucket repository at a specific branch or commit. Returns plain text, with binary files base64-encoded.
Instructions
Fetch the raw bytes of a file at a ref and return as plain text. Use this to read files. Binary files will be base64-encoded.
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": {
"projectKey": "<projectKey>",
"repoSlug": "<repoSlug>",
"path": "<path>",
"at": "<at>"
},
"name": "bb_raw_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | Ref: branch name or commit SHA | |
| path | Yes | File path, e.g. 'src/index.ts' | |
| repoSlug | Yes | ||
| projectKey | Yes |