gograph_mutate
Locate all code locations where a specific struct field is assigned or mutated. Use to diagnose state bugs and analyze field mutability in your codebase.
Instructions
Trace and audit all state-mutation and assignment points where a specific struct field gets modified. BEHAVIOR & SAFETY: This is a 100% local, read-only static analysis tool. It has no side effects, requires no authorization or credentials, has no rate limits, and performs zero destructive modifications. USAGE GUIDELINES: Call this tool when diagnosing state bugs, checking data mutability, or analyzing struct field lifetimes. Do NOT use for direct struct layouts (use gograph_fields instead). COMPLETENESS: Requires 'struct' and 'field' parameters. Returns file and line locations where the target field is assigned or updated. Example struct: 'Symbol', example field: 'Name'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | The field name to search for mutations (e.g., 'Status') |