Class HoverTool
java.lang.Object
com.github._1c_syntax.bsl.languageserver.mcp.tools.HoverTool
MCP-инструмент: подсказка (hover) по символу под курсором.
Переиспользует HoverProvider (обработчик textDocument/hover).
Требует свежий AST (вывод типов), поэтому читает через McpDocumentReader.analyze(String, Function).
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HoverTool
@ConstructorProperties({"documentReader","hoverProvider"}) public HoverTool(McpDocumentReader documentReader, HoverProvider hoverProvider)
-
-
Method Details
-
hover
@McpTool(name="hover", description="Return hover information (signature, type, documentation) for the symbol at a zero-based position.", generateOutputSchema=false) public HoverTool.Result hover(@McpToolParam(required=true,description="Path to the .bsl/.os file (absolute or relative to the working directory).") String file, @McpToolParam(required=true,description="Zero-based line number of the symbol.") int line, @McpToolParam(required=true,description="Zero-based character offset within the line.") int character)
-