# Fetch As Markdown

> Fetch a URL using Playwright and convert its content to Markdown.

- Skill: `paulirish/fetch-as-markdown` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add paulirish/fetch-as-markdown`
- Raw SKILL.md: https://api.skillmd.com/api/skills/paulirish/fetch-as-markdown/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: paulirish (https://skillmd.com/u/paulirish)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/paulirish/fetch-as-markdown

---


# Fetch As Markdown Skill

This skill allows fetching any web page, rendering it using a headless browser (Playwright) to ensure client-side content is loaded, and converting the resulting HTML into clean Markdown using `markpaste`.

## Usage

```bash
node agents/skills/fetch-as-markdown/scripts/fetch-as-markdown.ts <URL>
```

Example:
```bash
node agents/skills/fetch-as-markdown/scripts/fetch-as-markdown.ts https://example.com
```

The script will output the converted markdown to stdout.

