fetch
Fetch URLs and convert content to clean markdown for LLM processing while scanning for prompt injection risks. Returns structured data with metadata, links, and security assessments.
Instructions
Fetch a URL and return clean, LLM-ready markdown with metadata and prompt injection scanning.
Args: url: The URL to fetch. timeout: Request timeout in seconds. max_words: Optional word cap on extracted body content. strict: When True and high-risk injection is detected, the response is marked as an error. js: Use Playwright for JavaScript-rendered pages (requires playwright + chromium). links: Link extraction mode — "domains" (default) or "full" for all URLs with anchor text.
Returns: A structured dict with url, body (markdown), metadata, links, risk_level, injection_matches, sanitization stats, and edge case info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| timeout | No | ||
| max_words | No | ||
| strict | No | ||
| js | No | ||
| links | No | domains |