find_field_writes
Locates all write operations that modify a specific Java field to analyze data flow and state mutations in code.
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 |
|---|---|---|---|
| column | Yes | Zero-based column number | |
| line | Yes | Zero-based line number | |
| maxResults | No | Max write locations to return (default 100) | |
| filePath | Yes | Path to source file |