Skip to main content
SkillDiscs exposes REST endpoints that map cleanly onto LLM tool definitions. This guide shows the minimal tool surface for retrieval-augmented agents. Three tools cover ~95% of agent use cases:
  1. search_knowledgePOST /api/v1/search
  2. read_diskGET /api/v1/disks/{id}
  3. list_disksGET /api/v1/disks?scope=…&category=…&tag=… (browsing)
Skip batch unless you measure round-trip latency as a bottleneck.

Anthropic / Claude tool definition

In your tool handler, forward to:
When building context for the model, use section_text when present and fall back to snippet:

OpenAI / GPT function calling

Same JSON Schema, register under tools 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.