get_file_content
Retrieve the raw content of a file from a BitBucket repository. Useful for reviewing code, configuration files, or documentation.
Instructions
Get the raw content of a specific file from a BitBucket repository.
Use this tool when you need to read the full content of a specific file. This is useful for reviewing code, configuration files, or documentation.
Args: file_path: Path to the file in the repository. repository: Repository slug. If not provided, uses current repository context. workspace: Workspace slug. If not provided, uses the default workspace. ref: Branch, tag, or commit hash (default: HEAD).
Returns: The raw file content as a string.
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": {
"file_path": "<file_path>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| file_path | Yes | ||
| workspace | No | ||
| repository | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |