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.
| Capability | code.declaration_marks |
|---|---|
| Area | Code insight and refactoring |
| Access | reads only |
| Reaches | process |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | Workspace-relative file path. |
timeout_seconds | integer | Seconds to wait for the language server (default 30, at most 120).minimum 0 |
min_severity | string | Only 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.
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" ] } }}