find_element_by_location
Locate code elements like functions, types, classes, or imports by specifying a file path and line number in source code for static analysis.
Instructions
Find code elements (functions, types, classes, imports) by source location
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": {
"file_path": "<file_path>",
"line_number": "<line_number>"
},
"name": "find_element_by_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the source file | |
| line_number | Yes | Line number in the file | |
| base_directory | No | Base directory path (optional) | |
| element_types | No | Types of elements to search for |