En

agent-fetch

A comprehensive and accurate web content scraping tool for AI agents.

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: agent-fetch.
It is used for: A comprehensive and accurate web content scraping tool for AI agents.
Full Skill content: https://321skill.com/skills/agent-fetch/raw/index.md
Read that page and install it.

The prompt includes a link to the full Skill content. You can also view the full content.

agent-fetch addresses a common issue faced by AI agents when scraping web content: servers often detect client fingerprints, causing standard HTTP tools (like curl or an agent's built-in fetching capabilities) to receive truncated or incomplete responses. This prevents agents from obtaining full article information, impacting subsequent analysis and processing.

This tool spoofs servers into returning complete page content by emulating the network fingerprint of a real browser. It then employs multiple extraction strategies (such as Readability, JSON-LD, Next.js, RSC) to obtain structured, complete articles, including all paragraphs, headings, and links. It runs locally, requiring no API keys or cloud dependencies, and can be installed directly via npm or executed using the npx command.

agent-fetch is ideal for AI agent developers who need to process web content, RAG (Retrieval-Augmented Generation) pipeline builders, and any users who need to inject complete, clean web content into LLM conversations or knowledge bases. For example, when NotebookLM cannot directly add a URL as a source, you can use agent-fetch to extract the content and paste it as text.

The recommended usage is to prioritize agent-fetch over built-in fetching functions for automated workflows requiring high-fidelity, structured web content. Please note that while it supports custom timeouts and cookies, it may still need to be combined with other tools when handling extremely complex or dynamically loaded pages.

Key Features

Compared to similar tools, the core differentiator of agent-fetch is its local execution, lack of API key requirements, and integration of up to seven content extraction strategies (such as Readability, WP API, text density analysis). This enables more reliable extraction of complete, structured Markdown content from various modern website frameworks (like Next.js, RSC), rather than simple text summaries or messy HTML.

Limitations

For dynamic Single-Page Applications (SPAs) that heavily rely on client-side JavaScript rendering, it may be necessary to combine this tool with a headless browser to obtain the final rendered content.

FAQ

What is the difference between agent-fetch and using curl directly?

agent-fetch emulates browser fingerprints to bypass server-side restrictions on machine traffic, obtaining more complete, untruncated page content, whereas curl might only receive a summary or a mobile version.

Does it require payment or an API key?

Not at all. It is an open-source tool that runs locally, with no payment or API key requirements.

Installation guide for AI assistants

If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:

Visit https://321skill.com/skills/agent-fetch/raw/index.md to read the original Skill definition (Markdown format) for agent-fetch, and install it according to the instructions.