search_semantic
Search a session's knowledge structure using natural language. Finds relevant seed objects via vector similarity, then expands their neighborhood to retrieve matching subgraphs.
Instructions
Semantically search the Knowledge Structure of a session. Provide a natural language query; if the storage backend has a vector index (embeddings generated via the background outbox worker), matching seed objects are found automatically. Pass explicit 'seed_ids' instead when you already know which objects to expand around, or as a fallback if no embeddings have been generated yet for this session. The tool expands the neighbourhood around the matched seeds using query_subgraph. Use this when you don't know exact object IDs but have a description of what you're looking for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many hops to expand around each seed (default 1). | |
| query | Yes | Natural language description of what to find. | |
| top_k | No | Max number of seed objects to use (default 3). | |
| seed_ids | No | Optional. List of object IDs to start the subgraph expansion from. Omit to use vector search automatically; required as a fallback if the storage backend has no embeddings for this session yet. | |
| min_score | No | Minimum cosine similarity score (0.0 to 1.0). Results below this threshold are excluded. Default 0.0 (no filtering). | |
| session_id | Yes | The session to search in. |