get_file_content
Retrieve the full raw text of any file in a Bitbucket repository by providing its repository slug and file path, returning source code for direct reading.
Instructions
Read the full content of a file in a repository. Returns the raw file content as text. Use this to read source code files.
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": {
"repo_slug": "<repo_slug>",
"path": "<path>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file path (e.g., 'src/index.ts'). | |
| branch | No | The branch name. Defaults to the main branch. | |
| repo_slug | Yes | The repository slug. | |
| workspace | No | The workspace slug. Optional if BITBUCKET_WORKSPACE env var is set. |