Skip to content

quick_definition

MCP tools › Code insight and refactoring

Quick Definition for the symbol at a position (saved content): the source of its implementations from the language server, else its definition (kind). targets sorted by path and line, each with 0-based lines and the enclosing declaration's text (cut after 40 lines; else 12 lines). outside names non-file targets such as library classes. Read-only.

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

Capabilitycode.quick_definition
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

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 quick_definition '{"path":"<string>","line":1,"character":1}'
Input schema as JSON
{
"type": "object",
"required": [
"path",
"line",
"character"
],
"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
}
}
}