@davehardy20/pi-web-search
Pi package for web search via Tavily API.
Package details
Install @davehardy20/pi-web-search from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@davehardy20/pi-web-search- Package
@davehardy20/pi-web-search- Version
0.1.0- Published
- May 17, 2026
- Downloads
- not available
- Author
- davehardy20
- License
- MIT
- Types
- extension
- Size
- 10.3 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@davehardy20/pi-web-search
Pi package for web search via Tavily API.
What it adds
web_searchtool — Search the web using Tavily API. Returns relevant results with summaries and source URLs./web-search-status— Show package name, version, source path, and API key status.
Prerequisites
- A Tavily API key set as the
TAVILY_API_KEYenvironment variable.
export TAVILY_API_KEY='your-key'
Install
From npm:
pi install npm:@davehardy20/pi-web-search
From git:
pi install git:github.com/davehardy20/pi-web-search
From a local checkout during development:
pi install /Users/dave/tools/pi-web-search
For one run only:
pi -e /Users/dave/tools/pi-web-search
Notes
- Requires
TAVILY_API_KEYto be set in the environment. The tool returns a clear error if the key is missing. - If the
web_searchtool appears twice, Pi is probably loading both this package and the old localagent/extensions/web-search.tsfile. - Disable or remove the old local auto-discovered extension before reload verification.
Update flow
- update the package repo
- push to GitHub
- run
pi update --extensionsor reinstall the package - run
/reload
/reload alone does not fetch newer package commits.
Troubleshooting
Run /web-search-status to confirm:
- package name
- package version
- loaded source path
- Tavily API key status (set/not set)
Build and test
npm run typecheck
npm run test
npm run build