get_file_content
Retrieve file content from a Bitbucket repository by providing workspace, repository, and file path. Optionally specify branch, line range, or force full content; large files are smartly truncated.
Instructions
Get file content from a repository with smart truncation for large files
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch name (optional, defaults to default branch) | |
| file_path | Yes | Path to the file (e.g., "src/index.ts") | |
| workspace | Yes | Bitbucket workspace/project key (e.g., "PROJ") | |
| line_count | No | Number of lines to return (optional, default varies by file size) | |
| repository | Yes | Repository slug (e.g., "my-repo") | |
| start_line | No | Starting line number (1-based). Use negative for lines from end (optional) | |
| full_content | No | Force return full content regardless of size (optional, default: false) |