Class ToolCatalogUiController

java.lang.Object
ai.mindconnect.adminui.ui.controller.ToolCatalogUiController

@RestController @RequestMapping("/admin/api/tools") public class ToolCatalogUiController extends Object
Read-only catalog of all tools the runtime can provide. Mirrors the per-agent tool config, but lists the whole registry — the union of built-in tools and provider-contributed tools — so an operator can see what's available without opening an agent. Tools are not editable here.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ToolCatalogUiController(ai.mindconnect.agent.tool.ToolRegistry toolRegistry, ai.mindconnect.common.Namespace defaultNamespace, ToolTestService toolTestService, AdminLayoutFactory layoutFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ai.mindconnect.ui.model.UiPatch
    Close is just "remove the overlay" — the page behind stays as-is.
    ai.mindconnect.ui.model.UiPage
     
    ai.mindconnect.ui.model.UiPatch
    Runs the tool with the supplied JSON arguments, re-rendering the dialog in place.
    ai.mindconnect.ui.model.UiPage
    The search field posts its form here; the response is the filtered catalog.
    ai.mindconnect.ui.model.UiPatch
    Opens the "Test tool" dialog as a patch over whatever is on screen — the catalog page itself is untouched, so its expanded groups survive opening (and closing) the dialog.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ToolCatalogUiController

      public ToolCatalogUiController(ai.mindconnect.agent.tool.ToolRegistry toolRegistry, ai.mindconnect.common.Namespace defaultNamespace, ToolTestService toolTestService, AdminLayoutFactory layoutFactory)
  • Method Details

    • list

      @GetMapping public ai.mindconnect.ui.model.UiPage list(@RequestParam(required=false) String q)
    • search

      @PostMapping("/search") public ai.mindconnect.ui.model.UiPage search(@RequestBody Map<String,Object> raw)
      The search field posts its form here; the response is the filtered catalog.
    • testDialog

      @GetMapping("/{name}/test") public ai.mindconnect.ui.model.UiPatch testDialog(@PathVariable String name)
      Opens the "Test tool" dialog as a patch over whatever is on screen — the catalog page itself is untouched, so its expanded groups survive opening (and closing) the dialog.
    • runTest

      @PostMapping("/{name}/test") public ai.mindconnect.ui.model.UiPatch runTest(@PathVariable String name, @RequestBody Map<String,Object> raw)
      Runs the tool with the supplied JSON arguments, re-rendering the dialog in place.
    • closeTestDialog

      @PostMapping("/test-dialog/close") public ai.mindconnect.ui.model.UiPatch closeTestDialog()
      Close is just "remove the overlay" — the page behind stays as-is. Shared by both tool-test dialogs (catalog and agent tools); the × and backdrop close client-side, this backs the dialog's Close button.