shadowgraph_search
Search decision, attempt, and fact records by requiring every query term to match content, with Arabic stemming and filters for kind, status, confidence, and source class.
Instructions
Match records containing every literal query term as direct content matches. Supports Arabic stemming across records. Use shadowgraph_retrieve for graph neighbours, or shadowgraph_recall for ranked memory (shadowgraph_recall ranks by vector). Own-scope read saves nothing; an access key commits a revision and audit. "a b" requires both terms, not an exact phrase; matchMode:"partial" gives 3+ terms fallback; empty query filters.
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_search"
}
}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 case-insensitively as substrings 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). Every term must match something, so more terms narrow the result. Omit to filter without searching. | |
| 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. | |
| sourceClass | No | Return only records carrying this claimed origin class. A structured filter, never a content match. | |
| 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. |
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. |