diff_context
Analyze code changes to identify impacted files and dependencies, enabling precise impact assessment for modifications in software development workflows.
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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | ||
| changed_files | No | ||
| scope | No | unstaged | |
| max_tokens | No | ||
| exclude_dirs | No | ||
| output_format | No | text |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |