get_file_content
Retrieve file contents from a Bitbucket repository, with pagination to handle large files by specifying line limits and starting points.
Instructions
Read file contents from a repository with pagination support for large 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": {
"repository": "<repository>",
"filePath": "<filePath>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max lines per request (default: 100, max: 1000). | |
| start | No | Starting line number (default: 0). | |
| branch | No | Branch or commit hash (default: default branch). | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| filePath | Yes | Path to the file in the repository. | |
| repository | Yes | Repository slug. |