get_file_content
Retrieve file content from Bitbucket repositories to read source code, configuration files, or documentation. Supports pagination for large files by specifying line ranges.
Instructions
Retrieve the content of a specific file from a Bitbucket repository with pagination support. Use this to read source code, configuration files, documentation, or any text-based files. For large files, use start parameter to paginate through content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Bitbucket project key. If omitted, uses BITBUCKET_DEFAULT_PROJECT environment variable. | |
| repository | Yes | Repository slug containing the file. | |
| filePath | Yes | Path to the file in the repository (e.g., "src/main.py", "README.md", "config/settings.json"). | |
| branch | No | Branch or commit hash to read from (defaults to main/master branch if not specified). | |
| limit | No | Maximum number of lines to return per request (default: 100, max: 1000). | |
| start | No | Starting line number for pagination (0-based, default: 0). |