file_history
Retrieve recent commits for a file with pull request and issue context to understand code changes and their purpose.
Instructions
Returns the N most recent commits that touched a file, each annotated with its associated pull request and linked issues.
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": "<file>"
},
"name": "file_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file | |
| limit | No | Number of commits to return (default 10) | |
| repo_path | No | Working directory / repo root (defaults to cwd) |