@pi-plugins/websearch
v0.2.0
Published
WebSearch tool extension for pi-agent.
Maintainers
Readme
@pi-plugins/websearch
Search the web in pi with the web_search
tool.
Install
pi install npm:@pi-plugins/websearchTo try it for one session without changing your settings:
pi -e npm:@pi-plugins/websearchUsage
Ask pi to look something up:
Search the web for the latest Effect 4 release notes.Results are returned as a Markdown list of title, URL and a short content excerpt.
Pair it with @pi-plugins/webfetch to read a result in full.
Parameters
| Parameter | Type | Required | Description |
| ------------ | -------- | -------- | --------------------------------------------------------------- |
| query | string | Yes | The search query. |
| maxResults | number | No | Number of results to return, from 1 to 20. Defaults to 8. |
Configuration
Searches are served by Tavily in its free, rate-limited keyless mode. No account or setup is needed.
If you hit the keyless limit, set TAVILY_API_KEY to a Tavily API key. The free tier
includes 1,000 searches a month with no credit card required. Results are identical
in both modes.
Notes
Long result lists may be shortened to fit pi's output limit. A notice indicates when this happens.
