Query Knowledge
kg_querySearch a shared knowledge graph by semantic similarity, type, status, or recency to retrieve ranked nodes and spreading-activation context; use read-only mode to avoid writes.
Instructions
Search knowledge by semantic similarity, type, status, or recency. Returns nodes ranked by relevance. Use spread=true to find related nodes via spreading activation. With an active session, returned nodes are reactivated (their usage-based decay score is boosted; node content is not changed); pass read_only=true to search without changing anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Semantic search query | |
| type | No | Only nodes of this type | |
| limit | Yes | Max nodes to return (1-100) | |
| author | No | Only nodes by this author | |
| spread | Yes | Enable spreading activation | |
| status | No | Only nodes with this status | |
| tenant | No | Only nodes of this tenant (defaults to your own) | |
| project | No | Only nodes in this project | |
| read_only | Yes | Skip implicit activation of returned nodes. The query then performs no writes: no decay_score change, no last_activated or session_activated update. For read-only consumers (dashboards, benchmarks) where observing must not reinforce. Send a JSON boolean or the literal string "true"; any other string coerces to false and the query will write. | |
| spread_hops | Yes | Hops for spreading (clamped 1-3) | |
| include_edges | Yes | Include edges between result nodes | |
| spread_factor | Yes | Decay factor per hop | |
| include_related | Yes | Include directly related nodes | |
| neighbors_limit | Yes | Max neighbors per node | |
| include_neighbors | Yes | Include neighbor references per node | |
| activation_threshold | Yes | Min activation to include |