Class CallHierarchyTool

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

@Component @Profile("mcp") public class CallHierarchyTool extends Object
MCP-инструмент: иерархия вызовов метода/процедуры под курсором.

За один вызов возвращает один уровень иерархии — прямые входящие и исходящие вызовы, как один раунд LSP-протокола (prepareCallHierarchy + incomingCalls + outgoingCalls). Дерево рекурсивно не разворачивается, поэтому саморекурсивные методы безопасны. Вся работа делегируется CallHierarchyProvider.

  • Constructor Details

  • Method Details

    • callHierarchy

      @McpTool(name="call_hierarchy", description="Resolve the method/procedure at a zero-based position and return its direct incoming and outgoing calls (one level).", generateOutputSchema=false, annotations=) public CallHierarchyTool.Result callHierarchy(@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)