detect_changed_files
Identify modified, added, or deleted files in a Git workspace using git diff --name-status. Supports comparing against a base ref or showing staged changes.
Instructions
Detect changed files in a git workspace via "git diff --name-status". Defaults to HEAD~1..HEAD; use base_ref to override or staged_only=true for index-staged changes. Allowlisted refs only (no leading "-", no ".." substring, no "@{", max 200 chars). 10s timeout, 1MB output cap.
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": {
"workspace_root": "<workspace_root>"
},
"name": "detect_changed_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_root | Yes | ||
| base_ref | No | ||
| staged_only | No | ||
| working_tree | No | ||
| with_stats | No |