Search memory
search_nodesFind knowledge graph entities and their touching relations by matching words in names, types, or observations, with optional filters for agent and date range.
Instructions
Search entities by name, type, or observation text.
The query is split into words, and a "quoted phrase" stays one term. Returns the entities whose name, type, or any observation contains at least one term, ignoring case, ordered by how many terms they contain, plus every relation that touches them; a relation's other end may be outside the results. A blank query returns every entity. Since, before, and agent narrow the search to matching entries, as in read_graph. To fetch entities by exact name, see open_nodes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Only entries written by this agent, such as claude-code or codex. | |
| query | Yes | Words to find in entity names, types, and observations, ignoring case; a "quoted phrase" matches as one term. | |
| since | No | Only entries added at or after this time: an ISO date such as 2026-10-01, or a timestamp; local time when no offset is given. | |
| before | No | Only entries added before this time, in the same format as since. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | Yes | ||
| relations | Yes |