Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs: the query token_budget row names search.query_budget_unit
garrytan579e5b5af4a7
diff --git a/docs/mcp/TOOL_REFERENCE.md b/docs/mcp/TOOL_REFERENCE.mdindex b0b7d875bc..6e68e2c5cf 100644--- a/docs/mcp/TOOL_REFERENCE.md+++ b/docs/mcp/TOOL_REFERENCE.md@@ -326,7 +326,7 @@ Hybrid search with vector + keyword, plus multi-query expansion when the search| `snippet_chars` | number | Cap each result's chunk_text at N characters (a "… [truncated]" marker names the get_page recovery move). 0 forces full text. Unset: subagent tool loops default to the agent.search_snippet_chars config (300; 0=full); every other caller gets full text. A row widened by `search.long_page_unit` (`delivered: {unit, reason: "long_page"}`) is exempt and comes back whole; every other row is still cut. || `return_unit` | string (`chunk`, `window`, `section`, `page`, `auto`) | Evidence unit returned in each result's chunk_text (default: config search.return_unit, which defaults to 'auto').<br> 'chunk' — the ranked chunk only (~300-450 tokens per result).<br> 'window' — the hit chunk plus return_window neighbor chunks each side (local context, ~3x chunk).<br> 'section' — the enclosing markdown section, or the conversation rounds around the hit.<br> 'page' — the whole page/session, capped. Use for multi-session or temporal questions where the answer needs the whole conversation.<br> 'auto' — the whole page for conversation pages (conversation/transcript/chat/meeting/slack/imessage types, chat/ or conversations/ slugs), the ranked chunk unchanged for everything else. When no hit is a conversation the response is exactly the chunk response.<br>Non-chunk units return one result per page, packed into token_budget (default 6000, auto 24000; remote max 32000), with a `delivered` object (unit, chunk_ids, match_spans, tokens, truncated; reason under auto) per result and `delivery` in the response meta. || `return_window` | number | Neighbor chunks on each side for return_unit 'window' (integer 1-3, default 1). |-| `token_budget` | number | Token budget. Chunk mode, and whenever return_unit is omitted: caps the cumulative chunk payload (results that would overflow are skipped). Explicit non-chunk return_unit: the budget for delivered evidence (default search.return_budget_default = 6000, auto 24000; remote max search.return_budget_max_remote = 32000). |+| `token_budget` | number | Token budget. Chunk mode, and whenever return_unit is omitted: caps the cumulative chunk payload (results that would overflow are skipped); with `search.query_budget_unit=auto` (default `chunk`), an omitted return_unit delivers evidence under the budget as a hard cap instead, and a budget below 32 is refused. Explicit non-chunk return_unit: the budget for delivered evidence (default search.return_budget_default = 6000, auto 24000; remote max search.return_budget_max_remote = 32000). || `expand` | boolean | Multi-query expansion. Unset follows `search.expansion` (off by default in all three modes); true forces it, false skips it. Requires configured embedding and expansion providers; a cloud expander receives the query and may charge for the call. Response metadata expansion_applied reports whether variants were actually used. || `detail` | string | Result detail level: low (compiled truth only), medium (default, all with dedup), high (all chunks) || `mode` | string | Search mode (conservative\|balanced\|tokenmax). Local callers only; remote uses configured mode. |