Search Hudu (search | help | resources)
hudu_searchSearch articles, assets, companies, users, groups, websites, and password records; return ranked fuzzy matches with snippets, scores, and fetch calls for full records.
Instructions
Search Hudu. One tool, three modes: mode="search" (the default) runs the query; mode="help" returns how to use this tool; mode="resources" returns what is searchable and what each vendor text filter really covers. Only "search" needs query. mode="search": ranked, fuzzy search over article TITLE and BODY content, asset names, custom-field VALUES and identifiers, plus company/user/group/website names. Each hit carries resource, id, a snippet, a 0-100 score band and the fetch call for the full record. As a TOOL it defaults to tier "index" (build or await the body index), so the answer is complete rather than body-blind. Honesty: limit default 8 / max 25, snippetChars default 200 / max 400 (0 = none); a bound that bites sets meta.complete false and names itself in meta.reasons. hits=[] is a complete "nothing matched" answer ONLY when meta.complete is true and meta.degraded is null - read degraded first: it says when bodies were not searched ("body-not-indexed") or the index was cold ("vendor-only"). Not for identity lookup (hudu_find_* / hudu_get_*) or for paging (hudu_list_*). A field the mode cannot honour is a CONFIG_ERROR naming the fields it honours; a missing query is a CONFIG_ERROR naming mode:"help", never a silent help fallback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Which mode to run. Default "search" (the query runs; nothing else is needed). "help" returns how to use this tool. "resources" returns what is searchable. A field the selected mode cannot honour is a CONFIG_ERROR naming the fields it does honour - never silently ignored. | search |
| tier | No | mode="search" only. THIS TOOL DEFAULTS TO "index" (build or await the body index, so the answer is complete rather than body-blind). "auto" is the SDK default for programmatic callers; "vendor" answers from Hudu search alone. | |
| limit | No | mode="search" only. Ranked hits: 1-25, default 8. A larger value is a CONFIG_ERROR, never clamped. | |
| query | No | mode="search" only, and REQUIRED there: omitting it is a CONFIG_ERROR naming mode:"help" (it never falls back to help). Partial words are tolerated; article BODY content is searched. Hudu's own search differs by resource. Companies, websites, passwords and assets match the words in order with gaps allowed, so reordering words can miss a record ("acme corp" finds "Acme Corp Pty", "corp acme" may not). Users, groups and password folders match the whole query as one exact phrase, so use one word. Some instances answer from a fuzzy index that returns records matching only some of the words. Indexed articles and assets score each word independently (match.coverage). On a multi-word query, when the full phrase finds nothing, the tool retries the individual words and ranks partial matches lower; match.coverage shows how good a match is. For an exact lookup, search one distinctive word. | |
| topic | No | mode="help" only. Which help section to return (default "core"; "all" adds query syntax and scoring). Rejected in the other modes. | |
| refresh | No | mode="search" only. true forces a body-index rebuild before answering. | |
| min_score | No | mode="search" only. 0-100 score floor: hits below the floor are left out of the result, and NO count of them is reported - an empty result can be the floor, not absence. meta.scanned (candidates scored before the floor) and meta.returned separate absence from exclusion: scanned 0 = nothing scored at all; scanned > 0 with returned 0 = candidates scored but none returned - below the floor, or excluded by the company_id, updated_since or scope filters (lower or drop min_score, or relax those filters, to see what was left out). | |
| resources | No | mode="search" only. Which resources to search; default ["articles","assets"]. The resources this deployment's credential may read (HUDU_SEARCH_RESOURCES), from the SDK's searchable set: articles, asset_passwords, assets, companies, groups, password_folders, users, websites. | |
| company_id | No | mode="search" only. Scope the scan to one company. | |
| exact_only | No | mode="search" only. true disables fuzzy matching, still ranked and snippeted. Default false. | |
| snippetChars | No | mode="search" only. Snippet characters per hit: 0-400, default 200, 0 = no snippet. | |
| updated_since | No | mode="search" only. ISO 8601; only records updated at or after it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||