get_file_content
Retrieve content from specific files in Bitbucket repositories, with options for truncation, line selection, and full content extraction. Supports large files and custom branch or line ranges.
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") | |
full_content | No | Force return full content regardless of size (optional, default: false) | |
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) | |
workspace | Yes | Bitbucket workspace/project key (e.g., "PROJ") |