Skip to main content
Search the workspace knowledge base or ask it a question. Both tools need only knowledge:read, which every connection has from the start.

search_knowledge

Scope: knowledge:read (granted on first connect) · Kind: read-only · Annotations: readOnlyHint: true, destructiveHint: false, openWorldHint: false
Hybrid (vector + full-text) search over the organization’s ingested knowledge base. Returns ranked document excerpts with relevance scores. Use for finding source material to reason over yourself.
Use this when you want raw passages to reason over. For a direct answer, use ask_knowledge.

Parameters

string
required
The search query. Must be a non-empty string.
number
default:"10"
Maximum results, 1 to 25. Values outside the range are clamped; a non-numeric value falls back to the default.

Returns

array
Ranked hits, best first.
boolean
true when results were dropped to keep the response under 50,000 characters.
The text block renders each result as:
When there are no matches the text is No results found. and results is empty. When the response would exceed 50,000 characters, the remaining results are dropped, truncated is true and a […N more results truncated] line is appended. See Artifact URLs and document IDs for why a knowledge id is never a document id.

Permissions and side effects

  • Needs a token for the workspace with knowledge:read.
  • Searches only the token’s workspace.
  • Reads nothing else and changes nothing. The call is recorded in the workspace’s agent activity history.

Errors

Example

Request
Response (text)

ask_knowledge

Scope: knowledge:read (granted on first connect) · Kind: read-only · Annotations: readOnlyHint: true, destructiveHint: false, openWorldHint: false
Ask a question about the organization’s knowledge base and get an LLM-synthesized answer with cited sources. Use when you want a direct answer rather than raw excerpts.

Parameters

string
required
The question to answer. Must be a non-empty string.

Returns

string
The synthesized answer, citing sources as [n].
array
The sources the answer drew on, in citation order. Empty when the knowledge base had nothing relevant.
The text block:
When the answer cites no sources, only the answer text is returned.

Permissions and side effects

  • Needs a token for the workspace with knowledge:read.
  • Answers only from the token’s workspace.
  • Changes nothing. The call is recorded in the workspace’s agent activity history. The answer is generated by a language model, so treat it as a synthesis and follow the cited sources for detail.

Errors

Example

Request
Response (text)