get_file_content
Retrieve file content from a Bitbucket repository with smart truncation for large files. Specify workspace, repository, file path, and optional parameters like branch, line range, or full content retrieval. Supports efficient access to code or text files.
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") |