Documentation Index
Fetch the complete documentation index at: https://mintlify.com/exegia/corpora-py/llms.txt
Use this file to discover all available pages before exploring further.
search() is the primary query tool for Context-Fabric. You write a template string that describes a structural pattern — node types with feature conditions and indentation-based containment — and the engine returns every place that pattern occurs in the corpus. In the default "results" mode the tool returns the first page of matching node tuples along with their section references and a cursor_id you can hand to search_continue() to page through the rest. Other return modes let you get a quick total count, a node-type breakdown, or rendered passage text directly.
Consult search_syntax_guide() for full template syntax documentation.
Parameters
The query template string. Uses indentation to express containment and space-separated finds every verse that contains at least one verb. See
feature=value conditions on node lines. For example:search_syntax_guide() for the complete syntax.Controls what the tool returns. One of:
"results"(default) — Node tuples with section references for each matched result, plus acursor_idfor pagination when the total exceedslimit."count"— A single line with the total number of matches:"Total results: N"."statistics"— A frequency breakdown of every node type present across all matched tuples."passages"— Rendered text for the firstlimitmatched nodes, using the format specified byfmt.
Maximum number of results to include in the response. Clamped to the range
1–100. Defaults to 20. In "results" mode, remaining results are accessible via search_continue().Text rendering format, used only when
return_type="passages". Pass a format name from get_text_formats() (e.g. "text-orig-full"). When omitted, the corpus default format is used.Corpus name. When omitted, the currently active corpus is used.
Returns
The shape of the return value depends onreturn_type:
"results"— A header line"Results: N total, showing M", followed by numbered lines of pipe-separated section references for each result tuple, and acursor_id:line when further results exist. The cursor expires after 5 minutes of inactivity."count"—"Total results: N"."statistics"—"Result statistics (total=N):"followed by a frequency table of node types."passages"— One[section ref] textline per result, followed by(showing M of N)when truncated.
"Search error: <message>" if the template cannot be parsed or executed.