getFileContent
Fetch the content of a file in a Bitbucket repository, optionally at a specific commit, branch, or tag.
Instructions
Get the content of a file from a Bitbucket 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": {
"workspace": "<workspace>",
"repo_slug": "<repo_slug>",
"path": "<path>"
},
"name": "getFileContent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to file in repository | |
| commit | No | Commit SHA, branch, or tag (defaults to main branch) | |
| repo_slug | Yes | Repository slug | |
| workspace | Yes | Bitbucket workspace name |