get_file_content
Read file contents from Bitbucket repositories using workspace, repository, and file path; fetch line windows or full/tail content as needed.
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.
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 |