bitbucket_get_file_content
Retrieves a file's content from a Bitbucket repository using workspace, repository slug, and file path, with an optional branch, tag, or commit revision.
Instructions
Gets the content of a specific 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": {
"workspaceSlug": "<workspaceSlug>",
"repoSlug": "<repoSlug>",
"filePath": "<filePath>"
},
"name": "bitbucket_get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Full path to the file within the gateway. | |
| repoSlug | Yes | Slug of the gateway. | |
| revision | No | Optional revision (branch, tag, or commit hash) to get the file from. | |
| workspaceSlug | Yes | Slug of the workspace/project. |