search_news
Search for news articles by keyword, with options to filter by time range and limit the number of results.
Instructions
Search for news using SearxNG.
Args: query: News search query time_range: Time range filter ('day', 'week', 'month', 'year'). Use None for no time filtering. max_results: Maximum number of results to return (default: 10)
Returns: NewsSearchResponse with news search results
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_news"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| time_range | No | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message if search failed | |
| query | Yes | The search query that was executed | |
| results | Yes | List of news search results | |
| total_results | Yes | Total number of results found |