Browse documentation

search

[Search and Aggregates]

Find ranked current documents. Auto uses lexical ranking; hybrid needs --semantic and a ready index. Call describe after a hybrid failure. Use list_documents for complete sets.

Parameters

NameTypeRequiredDescription
querystringYesSearch text: one to 32 distinct terms.
spaceIdstringYesWorkspace ID from list_spaces.
collectionIdsjsonNoSearch only these collections of the workspace.
cursorstringNoOpaque token from a prior page. Unknown tokens require enumeration to restart.
filterjsonNoTyped conditions, all of which must match: {"all": [...]}, up to 16. Each has a path (a document root such as /title or /tags, or a /data pointer), an op, and a type. exists needs only path and op. eq, contains, gt, gte, lt, and lte take type (string, number, boolean, null, date, or instant) and value; in takes type and values (up to 50).
includeArchivedbooleanNoInclude archived records. Default: false
limitnumberNoMaximum items per page, from 1 to 50. Default: 20
modestringNoAuto selects lexical. Explicit hybrid needs --semantic and a ready index. Call describe after a retryable failure. Default: "auto"

Examples

Replace the sample IDs with values from your store. Use a fresh UUID for each requestId.

Find documents about the deployment window.

Arguments
{
  "spaceId": "11111111-1111-4111-8111-111111111111",
  "query": "deploy window",
  "limit": 5
}
Full MCP request
Full MCP request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "spaceId": "11111111-1111-4111-8111-111111111111",
      "query": "deploy window",
      "limit": 5
    }
  }
}