get_file_history
Lists a file's commit history at a branch, tag, or commit without cloning, returning paths and commit hashes across renames.
Instructions
List a file's history at a branch, tag or commit without cloning.
Returns paths and full commit hashes, preserving paths reported by Bitbucket
across renames. Use get_commit for author, message and date; Bitbucket omits
those from filehistory. Follow next_cursor until has_more is false.
cursor keeps its issued page size; limit only applies to the first page.
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_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | main | |
| path | Yes | ||
| limit | No | ||
| cursor | No | ||
| repo_slug | Yes |