agent-fetch

Original🇺🇸 English
Translated

Fetch and extract full article content from URLs. Returns complete text with structure (headings, links, lists) instead of summaries. 7 extraction strategies, browser impersonation, 200-700ms.

18installs
Added on

NPX Install

npx skill4agent add teng-lin/agent-fetch agent-fetch

Tags

Translated version includes tags in frontmatter

agent-fetch Skill

A better web fetch for text content. Your built-in web fetch summarizes or truncates pages. agent-fetch extracts the complete article — every paragraph, heading, and link — using 7 extraction strategies and browser impersonation. No server required, runs as a local CLI tool.

When to Use This Skill

Use agent-fetch whenever you need to read a URL. It returns full article text with structure preserved — better than your built-in web fetch for any task involving page content.
  • User asks to read, fetch, or analyze a URL
  • User types
    /agent-fetch <url>
  • You need the full text, not a summary or truncation
  • Your built-in web fetch returned incomplete or garbled content

Prerequisites

agent-fetch runs via npx (no install needed):
bash
npx agent-fetch --help

Commands

/agent-fetch <url>
- Fetch and Extract Article

Default usage. Fetches URL with browser impersonation and extracts complete article content as markdown.
bash
npx agent-fetch "<url>" --json
Parse the JSON output and present to the user:
markdown
---
title: {title}
author: {byline || "Unknown"}
source: {siteName}
url: {url}
date: {publishedTime || "Unknown"}
fetched_in: {latencyMs}ms
---

## {markdown || textContent}

{markdown || textContent}
If fetch fails, check
suggestedAction
in the JSON:
suggestedActionWhat it meansNext action
retry_with_extract
Needs full browserInform user; agent-fetch is HTTP-only
wait_and_retry
Rate limitedWait 60s and retry
skip
Cannot access this siteInform user

/agent-fetch raw <url>
- Raw HTML

Fetch raw HTML without extraction.
bash
npx agent-fetch "<url>" --raw

/agent-fetch quiet <url>
- Markdown Only

Just the article markdown, no metadata.
bash
npx agent-fetch "<url>" -q

/agent-fetch text <url>
- Plain Text Only

Plain text content without formatting or metadata.
bash
npx agent-fetch "<url>" --text

Why agent-fetch Extracts More

agent-fetch runs 7 extraction strategies in parallel and picks the most complete result:
StrategyWhat it does
ReadabilityMozilla's Reader View algorithm (strict + relaxed)
Text densityStatistical text-to-tag ratio analysis (CETD)
JSON-LDParses schema.org structured data
Next.jsExtracts from page props (
__NEXT_DATA__
)
React Server ComponentsParses streaming RSC payloads
WordPress REST APIFetches via
/wp-json/wp/v2/
endpoints
CSS selectorsProbes semantic containers (
<article>
,
.post-content
)
The longest valid result wins. Metadata (author, date, site name) is composed from the best source across all strategies.

agent-fetch vs Built-in Web Fetch

agent-fetchBuilt-in web fetch
ContentFull article textSummary/truncation
StructureMarkdown with headings, links, listsPlain text
MetadataTitle, author, date, site nameNone
Extraction7 strategies (best result wins)Basic parse
TLS fingerprintingBrowser impersonation via httpcloakBasic headers
Speed200-700ms2-5s
Install neededYes (npm)No (built-in)
JavaScriptNoYes