Search Nodes
search_nodesFinds knowledge graph entities whose names, types, or observations match a keyword or partial name, returning matching entities and every relation touching them. Use when you lack exact entity names.
Instructions
Search the knowledge graph for entities whose name, type or observations contain the query (case-insensitive). Use this when you have a keyword, a topic or part of a name but not the exact entity names. Prefer open_nodes when you already know the exact names, and use read_graph only when you need the whole graph. Returns the matching entities and every relation that touches one of them.
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": {
"query": "<query>"
},
"name": "search_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Return at most this many matching entities (the first matches, in stored order), with the relations that touch them. Omit to return every match. | |
| query | Yes | The search query to match against entity names, types, and observation content | |
| observationLimit | No | Return at most this many observations per entity (the first ones, in the order they were added) and add each entity's total as observationCount. Use 0 for names, types and counts only: a cheap overview of a large graph, after which open_nodes reads the entities you need in full. Omit to return every observation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | Yes | ||
| relations | Yes |