search_via_parent
Delegate semantic search to parent process for children without embeddings. Send query and receive top-N results from shared database via signal-based communication.
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 |
|---|---|---|---|
| query | Yes | ||
| k | No | ||
| scope | No | notes | |
| mode | No | hybrid | |
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |