find_field_writes
Locates all write accesses to a Java field, including assignments and increments, using zero-based coordinates for data flow analysis and state mutation understanding.
Instructions
Find all write accesses (mutations) to a field.
USAGE: Position cursor on a field declaration or reference OUTPUT: List of locations where the field is modified
IMPORTANT: Uses ZERO-BASED coordinates.
Unlike find_references which returns all usages, this returns only locations where the field value is changed (assignments, increments, etc). Useful for data flow analysis and understanding state mutations.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to source file | |
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| maxResults | No | Max write locations to return (default 100) |