get_method_at_position
Retrieve method signature, parameters, return type, modifiers, and exceptions at a specified position in a Java source file.
Instructions
Get method information at a specific position.
USAGE: Position on a method reference or declaration OUTPUT: Method signature, parameters, return type, modifiers, exceptions
IMPORTANT: Uses ZERO-BASED coordinates.
Requires load_project to be called first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>",
"line": "<line>",
"column": "<column>"
},
"name": "get_method_at_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| filePath | Yes | Path to source file |