Web search and fetch tools for the pi coding agent. Uses your local Ollama instance's web search and fetch APIs.
-
ollama_web_search- Search the web for real-time information -
ollama_web_fetch- Fetch and extract content from web pages
- pi coding agent installed
- Ollama running locally
pi install npm:@ollama/pi-web-search
### From GitHub
```bash
pi install git:github.com/ollama/pi-web-search
pi install /path/to/pi-web-searchpi -e git:github.com/ollama/pi-web-searchThe LLM can then use:
-
ollama_web_search- When you need to search for current information -
ollama_web_fetch- When you need to extract content from a specific URL
If you get connection errors:
- Make sure Ollama is running (
ollama serve) - Verify web search/fetch is enabled in your Ollama configuration
- Check the OLLAMA_HOST environment variable matches your setup
MIT