knowledge.search
Search knowledge base
Retrieve KB articles ranked by relevance to a natural-language query.
readZendesk 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", …).
| Field | Type | Required | Description |
|---|---|---|---|
| k | integer | no | default: 5 · min: 1 · max: 50 |
| query | string | yes |
Response
Returned by ctx.capability.call("knowledge.search", …).
Array; each element is an object with the following fields.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | yes | |
| url | string | no | |
| score | number | no | |
| title | string | yes | |
| snippet | string | yes |
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.