List changed files
list_changed_filesIdentify files changed between two commits, including status, line counts, and test flags. Call before get_diff to decide what to read; changed paths are listed even if content is hidden.
Instructions
List files changed between two commits, with status, line counts, and whether each file is a test (by the server's test globs). Cheap; call this before get_diff to decide what to read. Paths of changed files are always listed, even ones whose contents the path policy hides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base ref, e.g. `main` or a SHA. | |
| head | No | Head ref. Defaults to HEAD. | HEAD |
| mode | No | `merge-base` diffs from where head branched off base (what a pull request shows, like `base...head`). `direct` diffs the two commits as they are (`base..head`). | merge-base |
| paths | No | Only include these files or directories (literal paths, not globs). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Resolved base SHA. | |
| head | Yes | Resolved head SHA. | |
| files | Yes | ||
| mergeBase | Yes | Merge-base SHA in `merge-base` mode, else null. |