Web Search
web_searchReal-time web search via Tavily for current events, fact-checking, and research. Use search_depth='advanced' for complex queries (higher quality, higher cost) and topic='news' or 'finance' for headlines or market information.
Use when: Choose when the task needs current, external, or factual information not available from on-chain or local data — e.g. news, prices, documentation, or fact-checking.
Limitations: Returns web snippets, not raw page bodies; results depend on Tavily coverage. Advanced depth costs more. Not a substitute for on-chain tools like get_token_price.
Alternatives: get_token_price, http_fetch
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query | |
| topic | No | Search topic: 'general' for web, 'news' for headlines, 'finance' for markets | general |
| num_results | No | Number of web search results to return (1–20, default 5). | |
| search_depth | No | 'basic' for fast results, 'advanced' for thorough research (higher cost) | basic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| query | Yes | ||
| results | Yes | ||
| num_results | Yes |