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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_root | Yes | ||
| base_ref | No | ||
| staged_only | No | ||
| working_tree | No | ||
| with_stats | No |