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
ConstructorsConstructorDescriptionToolCatalogUiController(ai.mindconnect.agent.tool.ToolRegistry toolRegistry, ai.mindconnect.common.Namespace defaultNamespace, ToolTestService toolTestService, AdminLayoutFactory layoutFactory) -
Method Summary
Modifier and TypeMethodDescriptionai.mindconnect.ui.model.UiPatchClose is just "remove the overlay" — the page behind stays as-is.ai.mindconnect.ui.model.UiPageai.mindconnect.ui.model.UiPatchRuns the tool with the supplied JSON arguments, re-rendering the dialog in place.ai.mindconnect.ui.model.UiPageThe search field posts its form here; the response is the filtered catalog.ai.mindconnect.ui.model.UiPatchtestDialog(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.
-
Constructor Details
-
ToolCatalogUiController
public ToolCatalogUiController(ai.mindconnect.agent.tool.ToolRegistry toolRegistry, ai.mindconnect.common.Namespace defaultNamespace, ToolTestService toolTestService, AdminLayoutFactory layoutFactory)
-
-
Method Details
-
list
-
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.
-