@pi-plugins/webfetch0.3.1
WebFetch tool extension for pi-agent.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
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.