Get Diff
get_diffRetrieve staged file differences in a Git repository to review code changes before committing or pushing.
Instructions
Retrieve the diff of staged files in a git repository
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": {
"repoPath": "<repoPath>"
},
"name": "get_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoPath | Yes | Full path to the git repository. |