Recommended tool surface
Three tools cover ~95% of agent use cases:search_knowledge→POST /api/v1/searchread_disk→GET /api/v1/disks/{id}list_disks→GET /api/v1/disks?scope=…&category=…&tag=…(browsing)
batch unless you measure round-trip latency as a bottleneck.
Anthropic / Claude tool definition
section_text when present and fall back to snippet:
OpenAI / GPT function calling
Same JSON Schema, register undertools with type: "function". Forward to the same endpoint.
Prompt template
Gotchas
- Never embed the API key in a client-side bundle. Always proxy through your backend.
- Search is per-user and owned-Disk scoped in current production.
- Check
redacted. Full source text is only returned for owner-private Disks. - Embeddings are computed at import time; newly imported Disks are searchable within seconds.