Get File Content
bitbucket_get_file_contentRetrieve raw file content from Bitbucket Data Center repositories to access code, configuration files, or documentation directly for analysis or integration purposes.
Instructions
Get the raw content of a file from a repository.
Returns the full file content as text. Use at to fetch from a specific
branch, tag, or commit hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_key | Yes | The project key | |
| repository_slug | Yes | The repository slug | |
| path | Yes | File path (e.g. 'src/main/App.java') | |
| at | No | Branch, tag, or commit (default: default branch) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |