Skip to content
Konstera
Capability catalogue
knowledgereadfanout

knowledge.search

Search knowledge base

Retrieve KB articles ranked by relevance to a natural-language query.

Effect
read
Fanout
yes
Cache TTL
3600s
Traits
none
Implemented by

Zendesk KB, Intercom Articles, custom REST KB, PIM content

The tenant picks one of these when they bind this capability at install time. New implementations land as connectors ship — browse the connector catalogue.

Request arguments

Passed as the args parameter to ctx.capability.call("knowledge.search", …).

FieldTypeRequiredDescription
kintegerno
default: 5 · min: 1 · max: 50
querystringyes

Response

Returned by ctx.capability.call("knowledge.search", …).

Array; each element is an object with the following fields.

FieldTypeRequiredDescription
idstringyes
urlstringno
scorenumberno
titlestringyes
snippetstringyes

Example call

From inside your agent's handle(). The kernel resolves knowledge.search to the tenant's connector binding at invocation time.

response = await ctx.capability.call(
    "knowledge.search",
    args={
        "k": 5,
        "query": "...",
    },
)

See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.