web_search
Search the web using Ollama's hosted search API to retrieve relevant results with titles, URLs, and snippets. Provide a query and optional max_results count.
Instructions
Perform a web search using Ollama's hosted search API.
Args: query: The search query to run. max_results: Maximum number of results to return (default: 10).
Returns: A dictionary containing search results with title, url, and snippet.
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": "web_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||