fetch
Retrieve web content from any URL as markdown or raw HTML, automatically escalating from static to rendered retrieval when needed, with confidence scores and failure reasons.
Instructions
Fetch a URL through the resilience ladder (Tier 1 static -> Tier 2 rendered, escalating only when the failure mode suggests it'll help).
Args:
url: The URL to fetch.
mode: "markdown" returns clean readable content (default).
"raw" also includes the raw HTML alongside the markdown.
Returns a JSON object with the extracted content plus `confidence`,
`method` (which tier/strategy produced it), and `tier` — always
check `confidence` before trusting the result for anything important.
On failure, `failure_reason` explains why (never a silent empty result).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| mode | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |