get_file_content
Reads file content from a Bitbucket repository, fetching only a specific line range by default or the entire file on demand.
Instructions
Read a file. Windowed by default (start_line/line_count fetch ONLY that window server-side; ≤5000 lines per call). full_content=true or negative start_line (tail) fetches the whole file — prefer windows.
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>",
"repository": "<repository>",
"file_path": "<file_path>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch (default: default branch) | |
| file_path | Yes | ||
| workspace | Yes | Project key (e.g., PROJ) | |
| line_count | No | ||
| repository | Yes | Repository slug | |
| start_line | No | 1-based; negative = from end | |
| full_content | No | Entire file regardless of size |