get_file_content
Retrieve raw file content from a Bitbucket Server repository by providing project key, repository slug, and file path. Optionally set a branch, tag, or commit to fetch a specific version.
Instructions
Get the raw content of a file in a repository.
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": {
"projectKey": "<projectKey>",
"repositorySlug": "<repositorySlug>",
"path": "<path>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Branch, tag, or commit (default: default branch) | |
| path | Yes | File path within the repository | |
| projectKey | Yes | The Bitbucket project key | |
| repositorySlug | Yes | The repository slug |