Fetch Webpage
Convert webpages to readable text/markdown
The fetch_webpage
tool enables Letta agents to fetch and convert webpages into readable text or markdown format. Useful for reading documentation, articles, and web content.
On Letta Cloud, this tool works out of the box. For self-hosted deployments with an Exa API key, fetching is enhanced. Without a key, it falls back to open-source extraction tools.
Quick Start
Tool Parameters
Return Format
The tool returns webpage content as text/markdown.
With Exa API (if configured):
Fallback (without Exa): Returns markdown-formatted text extracted from the HTML.
How It Works
The tool uses a multi-tier approach:
- Exa API (if
EXA_API_KEY
is configured): Uses Exa’s content extraction - Trafilatura (fallback): Open-source text extraction to markdown
- Readability + html2text (final fallback): HTML cleaning and conversion
Self-Hosted Setup
For enhanced fetching on self-hosted servers, optionally configure an Exa API key. Without it, the tool still works using open-source extraction.