gograph_plan
Generate a structured pre-edit plan for a target symbol, identifying symbols to inspect first, related tests, routes, environment variables, and risks such as public API or SQL changes.
Instructions
Generate a structured pre-edit plan for a target symbol: which symbols to read first, which tests cover them, which routes and env vars they touch, and whether the change is public-API or SQL-touching. Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. Set with_context=true to inline full source+callers+callees for each symbol to inspect — eliminates follow-up gograph_context calls. WHEN TO USE: Before multi-file refactoring or architectural changes to understand scope upfront. NOT TO USE: For trivial single-line fixes; for post-edit verification (use gograph_review instead). RETURNS: JSON with inspect_first[], tests[], routes[], env[], and a risk object (public_api, touches_sql, etc.); with with_context=true, also includes inspect_contexts[] with full per-symbol bundles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | The name of the symbol you intend to modify (supports short name 'ValidateToken', dot-notation 'graph.Graph', or fully-qualified ID) | |
| uncommitted | No | Set to true to generate a global plan for all currently uncommitted changes across the repository | |
| with_context | No | If set to true, bundles full context, source code, callers, callees, and architectural roles for each symbol to be inspected |