get_branch_diff
Compare your current branch against a base branch to retrieve git diff output for review. Filter changed files by pattern to isolate specific code changes.
Instructions
Get the git diff between the current branch and a base branch.
Args: base_branch: The base branch to compare against (default: development). file_filter: File pattern to filter (default: *.py for Python files). working_directory: Working directory (defaults to current directory).
Returns: The git diff output showing changes on the current branch.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_branch_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_branch | No | development | |
| file_filter | No | *.py | |
| working_directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |