get_hover
Retrieve detailed hover information for a specific position in a code document, including language ID, file path, content, and project root, to enhance code editing and analysis.
Instructions
Get hover information for a position in a document
Input Schema
Name | Required | Description | Default |
---|---|---|---|
character | Yes | Zero-based character offset for hover position | |
content | Yes | The current content of the file | |
filePath | Yes | Absolute or relative path to the source file | |
languageId | Yes | The language identifier (e.g., "typescript", "javascript") | |
line | Yes | Zero-based line number for hover position | |
projectRoot | Yes | Important: 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"
}