language-server-mcp

get_hover

Get hover information for a position in a document

Input Schema

NameRequiredDescriptionDefault
characterYesZero-based character offset for hover position
contentYesThe current content of the file
filePathYesAbsolute or relative path to the source file
languageIdYesThe language identifier (e.g., "typescript", "javascript")
lineYesZero-based line number for hover position
projectRootYesImportant: Root directory of the project for resolving imports and node_modules where the tsconfig.json or jsconfig.json is located

Input Schema (JSON Schema)

{ "properties": { "character": { "description": "Zero-based character offset for hover position", "type": "number" }, "content": { "description": "The current content of the file", "type": "string" }, "filePath": { "description": "Absolute or relative path to the source file", "type": "string" }, "languageId": { "description": "The language identifier (e.g., \"typescript\", \"javascript\")", "type": "string" }, "line": { "description": "Zero-based line number for hover position", "type": "number" }, "projectRoot": { "description": "Important: Root directory of the project for resolving imports and node_modules where the tsconfig.json or jsconfig.json is located", "type": "string" } }, "required": [ "languageId", "filePath", "content", "line", "character", "projectRoot" ], "type": "object" }