Class HoverTool

java.lang.Object
com.github._1c_syntax.bsl.languageserver.mcp.tools.HoverTool

@Component @Profile("mcp") public class HoverTool extends Object
MCP-инструмент: подсказка (hover) по символу под курсором.

Переиспользует HoverProvider (обработчик textDocument/hover). Требует свежий AST (вывод типов), поэтому читает через McpDocumentReader.analyze(String, Function).

  • Constructor Details

  • Method Details

    • hover

      @McpTool(name="hover", description="Return hover information (signature, type, documentation) for the symbol at a zero-based position.", generateOutputSchema=false, annotations=) public HoverTool.Result hover(@McpToolParam(required=true,description="Path to the .bsl/.os file (absolute or relative to the working directory). The file must lie inside a registered workspace folder \u2014 see the `list_workspace_folders` and `register_workspace_folder` tools.") 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)