Bundled with LeSysBot
web
Fetch a URL and return its text content.
Install#
Nothing to do — this package ships inside LeSysBot and is available as soon as the installer finishes.
Tools#
This package exposes 1 tool.
fetch_url(url)#
Retrieve a URL and hand its text body back to the model.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
urlrequired | str | — | The URL to fetch. |
Notes#
- Requires the httpx pip package, declared in the package's requirements.txt.
- Content fetched from the web is fed straight into the model's context. Treat this the way you would treat any untrusted input to an assistant that can also run tools on your machine — see Security.
Source#
Every package is a folder holding a README.md and a tool.py. Read this one on GitHub: lesysbot/lesysbot/tools/web.
To write your own, see Writing tools.