@pi-plugins/webfetch

WebFetch tool extension for pi-agent.

Packages

Package details

extension

Install @pi-plugins/webfetch from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@pi-plugins/webfetch
Package
@pi-plugins/webfetch
Version
0.2.6
Published
Sep 14, 2026
Downloads
429/mo · 19/wk
Author
kedom1337
License
MIT
Types
extension
Size
3.1 MB
Dependencies
3 dependencies · 4 peers
Pi manifest JSON
{
  "extensions": [
    "./dist/index.mjs"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@pi-plugins/webfetch

Fetch web pages as Markdown or raw HTML in pi with the web_fetch tool.

Install

pi install npm:@pi-plugins/webfetch

To try it for one session without changing your settings:

pi -e npm:@pi-plugins/webfetch

Usage

Ask pi to fetch a URL:

Fetch https://example.com and summarize the page.

Pages are returned as Markdown by default. Ask for raw HTML when you need the page source.

Parameters

Parameter Type Required Description
url string Yes The HTTP(S) URL to fetch.
format "markdown" | "html" No Output format. Defaults to "markdown".
timeout number No Timeout in seconds, from 1 to 120. Defaults to 30.

Notes

Long pages may be shortened to fit pi's output limit. A notice indicates when this happens.