No description
  • HTML 87.9%
  • Go 10.1%
  • TypeScript 2%
Find a file
2026-10-25 12:46:54 +01:00
frontend/pages/tools feat(frontend): own our integration pages in this repo 2026-09-27 19:26:11 +02:00
frontend_assets/tools chore(frontend): refresh embedded assets for native sidebar navigation (#108) 2026-10-04 12:22:55 +00:00
.gitignore chore(frontend): gitignore the aggregator node_modules symlink 2026-09-27 19:56:17 +02:00
go.mod refactor(rest_api_tool): consume the core through the stable Host interface 2026-10-15 22:10:07 +00:00
go.sum refactor(rest_api_tool): consume the core through the stable Host interface 2026-10-15 22:10:07 +00:00
host.go refactor(rest_api_tool): consume the core through the stable Host interface 2026-10-15 22:10:07 +00:00
integration.frontend.json feat(frontend): declare this integration's prerendered pages locally 2026-09-27 19:39:51 +02:00
LICENSE docs: add AGPL-3.0-or-later NOTICE with licensing exceptions 2026-09-27 01:34:01 +02:00
models.go fix(db): use text for uuid columns so PostgreSQL works (ci#878) (#4) 2026-10-25 12:46:54 +01:00
NOTICE docs: add AGPL-3.0-or-later NOTICE with licensing exceptions 2026-09-27 01:34:01 +02:00
README.md inital rest api tool integration code 2026-07-03 19:40:40 +02:00
rest_api_tool_integration.go refactor(rest_api_tool): consume the core through the stable Host interface 2026-10-15 22:10:07 +00:00

REST API Tool Integration

The REST API Tool integration allows users to define dynamic tools from OpenAPI operations without recompiling the backend.

What it provides

  • Dynamic REST tool CRUD APIs under /api/v1/integrations/rest_api_tool/tools
  • Per-tool detail API by UUID
  • OpenAPI operation parsing (method/path/params/request body)
  • Safe outbound execution controls (allow-hosts, private-IP policy, timeout, response size, response censor paths)
  • Frontend pages:
    • /integrations/rest_api_tool/tools
    • /integrations/rest_api_tool/tools/{tool_uuid}

Typical usage

  1. Create a dynamic REST tool definition from OpenAPI spec + target operation
  2. Optionally configure init/call bindings and safety policy
  3. Add tool name to bot default_shared_config.tools
  4. Provide tool_init if required by generated init schema

When bot config is saved, matching user-owned dynamic REST tools are snapshotted into dynamic_tools and executed at runtime.