search_via_parent
Without local embeddings, delegate semantic search to the parent process to query the shared database for notes or dialog.
Instructions
Delegate a semantic search to the parent process (or any peer with embeddings loaded). For light children spawned with THREADKEEPER_NO_EMBEDDINGS=1, this is how you reach into the shared DB's semantic index without loading PyTorch yourself.
Mechanism: posts a 'search_request' signal addressed to the parent's cid (auto-resolved via tasks.parent_cid; falls back to broadcast if none). The parent's search_proxy daemon answers with a 'search_response' signal. This tool blocks until reply or timeout_s.
scope: 'notes' (default) or 'dialog'.
mode: 'hybrid'|'semantic'|'fts' (dialog scope only).
k: top-N results, 1..100.
Returns formatted result lines, or 'timeout' if no parent answers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| mode | No | hybrid | |
| query | Yes | ||
| scope | No | notes | |
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |