get_call_hierarchy_incoming
Find all incoming calls for a Java method before changing it to assess dependencies and avoid breaking callers. Load the project first; use zero-based cursor coordinates.
Instructions
Find all callers of a method (incoming calls).
USAGE: Position cursor on a method name OUTPUT: List of methods that call this method
IMPORTANT: Uses ZERO-BASED coordinates.
Useful for understanding who depends on a method before changing it.
The callers of a method of a class file, such as a JDK method, are those in the project's source files. maxResults outside 0 to 500 is INVALID_PARAMETER.
potentialMatches, present only when there are any, holds the places JDT's search reports as possible matches but cannot confirm, because a type or name there does not resolve (a missing dependency or a compile error): count is their exact number, and locations lists them, as many as the results it stands beside may list. They are never counted or listed as results.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| filePath | Yes | Path to source file | |
| maxResults | No | Max callers to return, 0 to 500 (default 50) |