get_file_content
Retrieve file contents directly from Bitbucket repositories without cloning. Specify repository, file path, and branch to access code or documentation.
Instructions
Get the content of a file from a repository.
Read file contents without cloning the repository.
Args:
repo_slug: Repository slug
path: File path (e.g., "src/main.py", "README.md")
ref: Branch, tag, or commit hash (default: "main")
Returns:
File content as text (or error if binary/not found)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| path | Yes | ||
| ref | No | main |