list_changed_files
List reviewable files in a repository's current Git diff by mode (staged or working) and return each changed file's path, status, additions, and deletions.
Instructions
List reviewable files in the repository's current git diff.
Args: repo_path: Path to the repository (any directory inside the work tree). mode: Diff source: "staged" (default), "working", or "base". "base" is not supported here; use review_git_diff for branch comparisons.
Returns: One entry per changed file with path, status, additions, deletions.
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": {
"repo_path": "<repo_path>"
},
"name": "list_changed_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | staged | |
| repo_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |