Class DocumentSymbolsTool

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

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

Переиспользует DocumentSymbolProvider — тот же провайдер, что отвечает на запрос textDocument/documentSymbol в LSP-режиме.

  • Constructor Details

  • Method Details

    • documentSymbols

      @McpTool(name="document_symbols", description="Return the symbol tree (regions, methods, variables) of a 1C/OneScript file.", generateOutputSchema=false, annotations=) public DocumentSymbolsTool.Result documentSymbols(@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)