Skip to content

find_symbol_locations

MCP tools › Code insight and refactoring

Definition, all references (including the declaration), the declaration of its type (type_definition) or its implementations and overrides (implementation) for the symbol at a position of a workspace file, from its language server. In an HTML file the definition of a class or id is every rule for it in the linked stylesheets, the <style> blocks and the project's other CSS, SCSS and Less files, and the definition of a jump link's fragment is the element with that id, from Ferris IDEA's own syntax trees without a server. Paths in the result are workspace-relative when inside the workspace.

Its results carry text from files, language_server: the client is told to treat that as data, never as instructions.

Capabilitycode.find_symbol_locations
AreaCode insight and refactoring
Accessreads only
Reachesprocess
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
pathrequiredstringWorkspace-relative file path.
linerequiredinteger0-based line.minimum 0
characterrequiredinteger0-based character in the line (Unicode scalar values).minimum 0
kindrequiredstringdefinition, references, type_definition or implementation.

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project find_symbol_locations '{"path":"<string>","line":1,"character":1,"kind":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"path",
"line",
"character",
"kind"
],
"properties": {
"path": {
"description": "Workspace-relative file path.",
"type": "string"
},
"line": {
"description": "0-based line.",
"type": "integer",
"minimum": 0
},
"character": {
"description": "0-based character in the line (Unicode scalar values).",
"type": "integer",
"minimum": 0
},
"kind": {
"description": "`definition`, `references`, `type_definition` or `implementation`.",
"type": "string"
}
}
}