Install
Install with PiG
pig install npm:@pi-plugins/webfetchInstall with Pi
pi install npm:@pi-plugins/webfetchReview before installing
Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./dist/index.mjs"
]
}README
Written by the package's publisher, shown as published in version 0.3.4 (README.md). PiG does not review it.
@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.