Get file content
bb_get_file_contentFetch raw file content from a Bitbucket repository at a branch, tag, or commit, with long files truncated and stats returned for safe inspection.
Instructions
Fetch the raw content of a file from a repository (optionally at a specific branch/tag/commit). Long files are truncated with statistics.
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>",
"repositorySlug": "<repositorySlug>",
"path": "<path>"
},
"name": "bb_get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Branch, tag or commit to read from. | |
| path | Yes | File path, e.g. 'src/index.ts'. | |
| maxChars | No | Maximum returned characters; the rest is truncated. | |
| projectKey | Yes | Project key. | |
| repositorySlug | Yes | Repository slug. |