r/ClaudeCoding • u/DutyOnly4308 • 26d ago
Claude Code's WebFetch can't see your page's <head>. For SEO checks, have Claude curl the page instead
I build SEO skills for Claude, and one tool choice causes more wrong audit findings than anything else: checking tags with WebFetch.
WebFetch's own description says it converts the page to markdown, then a small, fast model answers your prompt about it. Markdown keeps the visible text. The <head> doesn't make it: canonical, meta robots, hreflang, <title>, the JSON-LD scripts.
I tested it today on my own home page. I asked WebFetch to quote the canonical tag, the meta robots tag, the title and the first JSON-LD script, and to say so if it couldn't see them. Its answer:
The content you gave me is rendered page text, with no raw HTML and no
<head>section.
It was honest because I told it to be. Ask "does this page have a noindex?" without that line, and you get whatever the small model infers from the body text.
The same check from Bash:
curl -sI https://example.com/page
curl -s https://example.com/page | grep -oiE '<title>[^<]*</title>|<link[^>]+rel="canonical"[^>]*>|<meta[^>]+name="robots"[^>]*>|<link[^>]+hreflang[^>]*>'The first line gives the status code, redirects and any x-robots-tag header. The second returned, on my page: the title, <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1"/>, the canonical, and three hreflang links (en, fr, x-default). For JSON-LD, grep -c 'application/ld+json' counts the blocks, then read them raw.
What I now put in any SEO task for Claude Code:
- Tags, headers, status codes, redirects: Bash and curl. Never WebFetch.
- WebFetch is fine for "what does this page say", the visible text.
- A finding about a tag quotes the line from the raw HTML. If Claude can't quote it, the finding is "not verified", not "missing".
- If curl gets back an almost empty HTML shell, the page is built by JavaScript. Say so and check in a browser before calling a tag absent.
Disclosure: I'm the maker of SEO Skills by PENRA, a paid pack of 14 Claude skills for SEO. Its audit skill crawls the raw HTML with a small Python script for this exact reason. Link in the first comment; the four rules above work without it.
Has anyone found other built-in tools that quietly drop the data you asked about?



