New to tool search? Start with Tool Search 101 for an overview of why, how, and when to use it.
Agent-Driven Search (Recommended)
The simplest way to use tool search: give your agenttool_search and tool_execute, and let it discover tools on demand.
Framework Examples
Manual Search
When you need to find tools yourself before passing them to an agent:Search modes (auto, semantic, local)
Search modes (auto, semantic, local)
Constructor configuration
Constructor configuration
Set default search options at the constructor level. These apply to all search calls unless overridden per-call.Per-call overrides take precedence over constructor defaults:
SearchConfig Options
Parameters reference
Parameters reference
Advanced Patterns
searchActionNames(), lightweight preview
searchActionNames(), lightweight preview
Returns action names and similarity scores without fetching full tool definitions. Use it to inspect results before committing to a full fetch.
getSearchTool(), callable for custom agent loops
getSearchTool(), callable for custom agent loops
Returns a reusable
SearchTool for agent loops where the LLM decides what to search for.