get_file_content
Retrieve the raw content of a file from a Bitbucket repository by specifying project key, repository slug, and file path, with an optional branch or commit reference.
Instructions
Get the raw content of a file from a repository.
Args: project_key: The project key. repo_slug: The repository slug. path: Full path to the file within the repository. at: Optional branch name, tag, or commit ID (defaults to default branch).
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": {
"project_key": "<project_key>",
"repo_slug": "<repo_slug>",
"path": "<path>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_key | Yes | ||
| repo_slug | Yes | ||
| path | Yes | ||
| at | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |