pce_impact
Analyze the impact boundary of a known code change target, revealing direct call sites, consumers, propagation chains, risks, and suggested modification order before you modify, rename, delete, add a field, or change a signature.
Instructions
Purpose: The primary tool for analyzing the impact boundary of a known change target. Outputs direct call sites, direct consumers, main propagation chains, risks, and suggested modification order. When to use: Use when you already know which symbol, field, interface contract, or file to change, and want to understand what will be affected before making the change. Best practice: Provide an explicit target; if you know the file containing the symbol, also provide the file parameter to speed up resolution. Frame the question as a concrete change, e.g. 'modify field X', 'change function signature of Y', 'what breaks if file Z is deleted'. Avoid: If the target is still ambiguous or you are choosing between multiple candidates, do not use impact as a substitute for the discovery step — use pce_query first to converge on the target. If you only want to view local implementation or exact definitions, impact is not necessary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File path containing the symbol (optional, speeds up resolution if provided). | |
| target | Yes | The change target — a symbol name (e.g. UserSession) or file path. | |
| change_type | Yes | Type of change: modify | rename | delete | add_field | change_signature |