get_changed_files
Identify files modified, added, or deleted in a branch or commit. Optionally retrieve the unified diff to review changes.
Instructions
Returns a list of files changed since a git ref (default: HEAD~1), grouped by status (added/modified/deleted). Optionally includes the full unified diff. Use this to understand what changed in a branch or commit.
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_changed_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_ref | No | Git ref to diff against (branch, tag, or commit SHA). Default: HEAD~1. | |
| include_diff | No | Include the full unified diff output (max 50 KB). Default: false. | |
| file_pattern | No | Glob pattern to filter changed files, e.g. "**/*.ts". Default: all files. |