bb_get_file_content
Read file content from a Bitbucket repository with pagination, branch selection, and output formats (text, JSON, or TOON).
Instructions
Get the content of a file from a repository with pagination support
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": {
"workspace": "<workspace>",
"repo_slug": "<repo_slug>",
"file_path": "<file_path>"
},
"name": "bb_get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit hash (defaults to main branch) | |
| limit | No | Maximum number of lines to return (default: 1000, max: 10000) | |
| start | No | Starting line number for pagination (1-based, default: 1) | |
| filter | No | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax | |
| file_path | Yes | Path to the file in the repository | |
| repo_slug | Yes | The repository name | |
| workspace | Yes | The workspace or username | |
| output_format | No | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |