Class FindReferencesTool

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

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

Переиспользует ReferencesProvider (обработчик textDocument/references). Кросс-файловые ссылки корректны, так как контекст сервера проиндексирован на старте.

  • Constructor Details

  • Method Details

    • findReferences

      @McpTool(name="find_references", description="Find all references to the symbol located at the given zero-based position in a file.", generateOutputSchema=false, annotations=) public FindReferencesTool.Result findReferences(@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)