pi-multi-web-search
v1.0.0
Published
Pi extension: web_search tool with Exa, Brave and Tavily provider fallback
Downloads
0
Maintainers
Readme
pi-multi-web-search
A pi-coding-agent extension that registers a web_search tool with automatic fallback across three search providers.
Features
- Provider fallback chain. Uses the first configured provider that succeeds: Exa → Brave → Tavily. Each request gets a 15 s timeout.
web_searchtool withqueryand optionalnumResults(clamped to 1–10) parameters, prompt snippet and guidelines.- Structured results (title, URL, content preview) with provider attribution in the tool response.
Installation
pi install npm:pi-multi-web-searchConfiguration
Set at least one API key in your environment:
| Provider | Env var |
| --- | --- |
| Exa | EXA_API_KEY |
| Brave | BRAVE_SEARCH_API_KEY |
| Tavily | TAVILY_API_KEY |
Usage
The agent calls web_search automatically when it needs current information. Fetch full pages from the returned URLs with curl in bash.
