| name | web-fetch |
| description | Fetch and extract readable content from a URL; returns markdown or plain text |
| metadata | {"CARNELIAN":{"emoji":"🌐","requires":{"env":["FIRECRAWL_API_KEY"]},"primaryEnv":"FIRECRAWL_API_KEY"},"carnelian":{"runtime":"node","version":"1.0.0","sandbox":{"network":"full","resourceLimits":{"maxMemoryMB":128,"maxCpuPercent":25,"timeoutSecs":30},"env":{"FIRECRAWL_API_KEY":"${FIRECRAWL_API_KEY}"}},"capabilities":["net.http"]}} |
web-fetch
Fetch and extract readable content from a URL.
Ported from CARNELIAN web-fetch.ts.
Input
{
url: string;
extractMode?: "markdown" | "text";
maxChars?: number;
}
Output
{
url: string;
finalUrl: string;
status: number;
contentType: string;
title?: string;
extractMode: string;
extractor: string;
truncated: boolean;
length: number;
fetchedAt: string;
tookMs: number;
text: string;
}
Notes
- Firecrawl: When
FIRECRAWL_API_KEY is set, uses Firecrawl API for high-quality markdown extraction
- Direct fetch: Falls back to direct HTTP fetch with regex-based HTML tag stripping
- Readability: Not available in sandbox; HTML is stripped with regex fallback
- Truncation: Content is truncated to
maxChars to prevent memory issues