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
search_action_names(), lightweight preview
search_action_names(), lightweight preview
Returns action IDs and similarity scores without fetching full tool definitions. Use it to inspect results before committing to a full fetch.
get_search_tool(), callable for custom agent loops
get_search_tool(), callable for custom agent loops
Returns a callable
SearchTool for agent loops where the LLM decides what to search for.