get_file_content
Retrieve the full text content of any file in a Bitbucket repository, specifying a branch or commit hash. Defaults to the repository's main branch.
Instructions
Get the full content of a file at a given branch name or commit hash. If no ref is given, the repository's default branch is used.
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": {
"filePath": "<filePath>",
"repoSlug": "<repoSlug>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the file within the repository (e.g. src/auth.ts) | |
| ref | No | Branch name or commit hash (defaults to the repo's main branch) | |
| repoSlug | Yes | Repository slug (e.g. my-repo) |