Skip to content

declaration_marks

MCP tools › Code insight and refactoring

Gutter marks of a JavaScript, TypeScript, Java or Kotlin file: for each declaration that overrides, implements, is overridden, is implemented or is inherited from, its line, character, name, kind (overrides, implements, overridden, implemented, inherited) and targets (name, location). Script files without typescript-language-server, or when it fails, are answered from the project's syntax trees.

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

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

Arguments

ArgumentTypeDescription
pathrequiredstringWorkspace-relative file path.
timeout_secondsintegerSeconds to wait for the language server (default 30, at most 120).minimum 0
min_severitystringOnly findings of this severity or a more severe one: error, warning, information or hint (default: all).

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 declaration_marks '{"path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"description": "Workspace-relative file path.",
"type": "string"
},
"timeout_seconds": {
"description": "Seconds to wait for the language server (default 30, at most 120).",
"type": [
"integer",
"null"
],
"minimum": 0
},
"min_severity": {
"description": "Only findings of this severity or a more severe one: `error`, `warning`, `information` or\n`hint` (default: all).",
"type": [
"string",
"null"
]
}
}
}