web_search
Search the web or news articles with filters for time, region, and safe search. Returns results in markdown or JSON.
Instructions
Unified search tool for web content and news.
Args: query: Search query string search_type: Type of search ('text' or 'news') max_results: Max number of results to return (default 5) time_range: Time filter ('d', 'w', 'm', 'y') or None region: Geographic region (e.g. 'us-en', 'uk-en') or None safesearch: Safe search level ('moderate', 'off', 'on') page: Page number for pagination (default 1) backend: Backend to use ('auto', 'legacy', 'api') response_format: Output format - 'markdown' for human-readable, 'json' for structured data
Returns: str: Markdown-formatted search results (when response_format="markdown") SearchResponse: Raw search results (when response_format="json") ErrorResponse: Error response if applicable
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| search_type | No | text | |
| max_results | No | ||
| time_range | No | ||
| region | No | ||
| safesearch | No | moderate | |
| page | No | ||
| backend | No | auto | |
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |