Search knowledge articles
kb_searchSearch knowledge articles by text across ServiceNow instances, optionally filtering by knowledge base or language; fall back to published kb_knowledge articles when the Knowledge REST API is unavailable.
Instructions
Search knowledge articles by text. Uses the Knowledge REST API; when the instance lacks it, falls back to published articles in the kb_knowledge table and says so (fallback field). kbId is a knowledge base title or sys_id; language is e.g. "en".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "kb_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kbId | No | Only this knowledge base (title or sys_id). | |
| text | Yes | Words to find in the article title or body. | |
| limit | No | Maximum records to return. Defaults to the configured default, capped at maxRecords. | |
| fields | No | Field names to return (dot-walking allowed, e.g. caller_id.name). Default: all. | |
| offset | No | Records to skip (paging). Use nextOffset from the previous result. | |
| instance | No | Instance alias from the config (see instance_list). Defaults to the default instance. | |
| language | No | Article language code, e.g. "en". | |
| displayValue | No | raw = stored values, display = labels, both (default) = value and label when they differ. |