{ "url": "https://api.example.com/data.json", "extractMode": "raw" } — fetch raw JSON
Notes
Uses Node.js fetch with a 30-second timeout
Automatically strips <script> and <style> tags and all HTML markup
JSON responses are detected and returned without stripping
Output is truncated at maxChars with a note indicating omitted content
Blocks requests to private/internal IP addresses for security
1---2name: web-fetch3description: Web Fetch4---5# Web Fetch67Fetch any URL and return its content as readable text. HTML is automatically stripped for clarity.89## When to Use1011- Retrieving the full content of a web page by URL12- Reading documentation, articles, or API responses from a known URL13- Fetching raw JSON or text content from an API endpoint14- Following up on URLs found via `web_search`1516## When NOT to Use1718- Searching the web for information — use the `web_search` tool instead19- Fetching content that requires authentication (login-gated pages)20- Downloading binary files (images, PDFs, archives)2122## Tools2324### `web_fetch`2526Fetch a URL and return its text content. HTML tags are stripped for readability.2728**Parameters:**2930| Name | Type | Required | Description |31|------|------|----------|-------------|32| `url` | string | yes | The URL to fetch |33| `maxChars` | number | no | Maximum characters to return (default 10000) |34| `extractMode` | string | no | `text` (default) strips HTML tags; `raw` returns unstripped content |3536**Returns:** `{ "result": "..." }` — plain text content of the page with HTML stripped:3738```39Page title and heading text40Body content, paragraphs, code examples...41[truncated, N chars omitted]42```4344JSON responses are returned as-is without stripping. On failure, returns `{ "error": "..." }`.4546**Examples:**4748- `{ "url": "https://docs.example.com/guide", "maxChars": 5000 }` — fetch a docs page49- `{ "url": "https://api.example.com/data.json", "extractMode": "raw" }` — fetch raw JSON5051## Notes5253- Uses Node.js `fetch` with a 30-second timeout54- Automatically strips `<script>` and `<style>` tags and all HTML markup55- JSON responses are detected and returned without stripping56- Output is truncated at `maxChars` with a note indicating omitted content57- Blocks requests to private/internal IP addresses for security
Run npx skillmds@latest add aaronboshart1/web-fetch in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Web Fetch It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
aaronboshart1 (@aaronboshart1) published this skill. Their other Agent Skills are listed on their SkillMD profile.