diff_context
Analyze the impact of file changes in a repository. Pass file paths or use git scopes to auto-detect changes and return structured context for code review or modifications.
Instructions
Impact analysis for changed files. Pass comma-separated paths OR use scope to auto-detect from git.
changed_files: comma-separated file paths (overrides scope if provided)
scope: git detection mode — "unstaged" (default), "staged", "commit", "branch"
max_tokens: cap output length (default 6000)
output_format: "text" (default) or "json" for structured response
NOTE: When using scope (git auto-detect), the repo must be a git repository.
Returns a NOT_GIT_REPO error if it isn't. If changed_files is provided,
git is not required.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | /demo | |
| changed_files | No | ||
| scope | No | unstaged | |
| max_tokens | No | ||
| exclude_dirs | No | ||
| output_format | No | text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |