mirror of
https://github.com/msgmate-io/open-chat-go-rest-api-tool-integration.git
synced 2026-11-26 16:59:56 +00:00
No description
- HTML 87.9%
- Go 10.1%
- TypeScript 2%
| frontend/pages/tools | ||
| frontend_assets/tools | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| host.go | ||
| integration.frontend.json | ||
| LICENSE | ||
| models.go | ||
| NOTICE | ||
| README.md | ||
| rest_api_tool_integration.go | ||
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
- Create a dynamic REST tool definition from OpenAPI spec + target operation
- Optionally configure init/call bindings and safety policy
- Add tool name to bot
default_shared_config.tools - Provide
tool_initif 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.