Get File Content
bitbucket_get_file_contentRetrieve raw text content of any file from a Bitbucket Data Center repository, optionally at a specific branch, tag, or commit.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_key": "<project_key>",
"repository_slug": "<repository_slug>",
"path": "<path>"
},
"name": "bitbucket_get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Branch, tag, or commit (default: default branch) | |
| path | Yes | File path (e.g. 'src/main/App.java') | |
| project_key | Yes | The project key | |
| repository_slug | Yes | The repository slug | |
| response_format | No | Output format: markdown (default) or json | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |