SynapsesOS
Reference — Tools

Search

search

Multi-mode search across entity names, doc comments, and graph nodes.

Absorbs: find_entity (via mode=“exact”).

Parameters

ParameterTypeRequiredDescription
querystringYesSearch term (case-insensitive).
modestringNokeyword (default): substring match. fulltext: FTS5 BM25 ranking. semantic: HyDE vector search. exact: name lookup returning node refs (ID, type, file, line).
limitnumberNoMaximum results (default 20, max 50). Used for fulltext/semantic.
hydebooleanNoHyDE hypothesis generation (default true). Only applies when mode=semantic.
formatstringNoOutput format for mode=exact: compact (default) or json.

Mode: keyword (default)

Substring match across entity names.

{
"tool": "search",
"arguments": {
"query": "AuthService"
}
}

Mode: fulltext

FTS5 BM25-ranked search across names and documentation.

{
"tool": "search",
"arguments": {
"query": "authentication handler",
"mode": "fulltext",
"limit": 10
}
}

Mode: semantic

Vector similarity search with optional HyDE hypothesis generation.

{
"tool": "search",
"arguments": {
"query": "function that validates JWT tokens",
"mode": "semantic",
"limit": 5
}
}

Mode: exact

Name lookup returning node references. Use to resolve entity names before calling get_context.

{
"tool": "search",
"arguments": {
"query": "CarveEgoGraph",
"mode": "exact"
}
}