shadowgraph_retrieve
Retrieve seed records matching every query term plus their ordered graph neighbours, including Arabic stem forms, for graph-aware memory lookup.
Instructions
Retrieve seed records matching every query term plus their ordered graph neighbours. Queries match Arabic stem forms. Use shadowgraph_search for flat keyword hits without graph neighbours, or shadowgraph_recall when ranking memories (shadowgraph_recall ranks by vector). Own-scope read saves nothing; an access key commits a revision and audit. Every term must match a seed; neighbours need not match, and matchMode allows 3+ terms fallback on seeds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "shadowgraph_retrieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Restrict results to decisions, attempts, or facts. A structured filter, never a content match. | |
| limit | No | Maximum items to return, 1-1000; the default is 50 and completeness.limitSource reports which applied. Out of range is rejected, never silently clamped. | |
| query | No | Whitespace-separated terms matched against the declared content fields (title, goal, chosen, assumption, evidence, alternative, attempt task, attempt solution, attempt result, attempt reason, environment, tags, changeSummary, outcome lessons, fact key, fact value), exactly as in shadowgraph_search. Omit to retrieve by filters alone. | |
| offset | No | Items to skip before this window. Ordering is total and deterministic, so paging cannot drop or duplicate an item. | |
| status | No | Return only decisions in this lifecycle state. A structured filter, so matching it is never counted as a content match. | |
| grantId | No | Alias for accessId; conflicting identifiers are refused. | |
| project | No | Project or confirmed workspace binding; otherwise origin-only. No identity returns an empty scoped view. | |
| accessId | No | Grant ID, rechecked at use. Widens reads only, never write authority. Presenting it commits a revision and bounded audit (at most one aggregate per grant, surface, outcome and UTC day). Conflicts with grantId are refused. | |
| originId | No | Capture-origin ID for unattributed records when project is omitted. | |
| matchMode | No | Term matching strategy: all (default, require every term), partial (allow term subset with 3+ terms), or any. | |
| minConfidence | No | Return only decisions whose current confidence is at least this value, 0-1. A structured filter, never a content match. | |
| expandSynonyms | No | Expand query terms with bilingual English and Arabic synonyms and morphological variants. | |
| readProvenance | No | Original expansion bounds; cannot widen access. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | The window actually applied to the matching items. | |
| items | Yes | The items in this window, in deterministic order. | |
| completeness | Yes | Declares exactly what this response left out, so a truncated result can never look complete. | |
| readProvenance | No | Original read bounds; reuse intersects these with currently valid authority. |