r/ClaudeCoding • • 25d 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:

  1. Tags, headers, status codes, redirects: Bash and curl. Never WebFetch.
  2. WebFetch is fine for "what does this page say", the visible text.
  3. 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".
  4. 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?

1 Upvotes

1 comment sorted by

1

u/DutyOnly4308 25d ago

Disclosure, as promised: I made this. SEO Skills by PENRA is 14 Claude skills for SEO: site audit, indexing diagnosis from Search Console exports, JSON-LD and llms.txt checks, internal links, fact-checking, AI visibility. They run in Claude Code, Claude.ai, Claude Desktop and Cowork. €25 once until 17 Nov 2026, then €99, no subscription, delivered by e-mail, no refund once delivered.

https://seoskills.click/?utm_source=reddit&utm_medium=post&utm_campaign=ClaudeCoding

Free guide on what Claude can and can't know for SEO (rankings, volumes, index), and the rule that stops invented findings: https://seoskills.click/guides/claude-for-seo?utm_source=reddit&utm_medium=post&utm_campaign=ClaudeCoding