get_file_contents
Retrieve file contents from a Bitbucket repository at a specific branch, tag, or commit to access code and configuration files.
Instructions
Get the contents of a file from a repository at a specific branch/commit.
Args: repo_slug: Repository slug (name) file_path: Path to the file in the repository ref: Branch name, tag, or commit hash (default: main) workspace: Bitbucket workspace (optional if configured)
Returns: File contents as text
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| file_path | Yes | ||
| ref | No | main | |
| workspace | No |