search-has-four-output-formats
IN premise
The `search` function supports four output formats: markdown, json, minimal, and compact — selected by the caller to match the consumption context (human, API, LLM prompt, compact view).
Summary
The search function is designed to serve multiple audiences by offering four distinct output formats. This means callers can request human-readable markdown, structured JSON for programmatic use, a stripped-down minimal format suitable for LLM prompts where token economy matters, or a compact view for dense listings — so the same search logic adapts its presentation without needing separate endpoints or post-processing.
Details
| Source | entries/2026/05/08/reasons_lib-api.md |