@davehardy20/pi-web-search

Pi package for web search via Tavily API.

Packages

Package details

extension

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_search tool — 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_KEY environment 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_KEY to be set in the environment. The tool returns a clear error if the key is missing.
  • If the web_search tool appears twice, Pi is probably loading both this package and the old local agent/extensions/web-search.ts file.
  • Disable or remove the old local auto-discovered extension before reload verification.

Update flow

  1. update the package repo
  2. push to GitHub
  3. run pi update --extensions or reinstall the package
  4. 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