HANDS-ON TECHNICAL PLAYBOOK · 2026

AI Search & Agent Debugging Playbook: How to Verify What ChatGPT, Claude & Perplexity Actually See

Use a repeatable workflow to compare public HTTP responses, initial HTML, browser-rendered content, and agent-facing controls. Test only sites you own or have permission to diagnose.

WHY TESTING IN YOUR REGULAR BROWSER CAN MISLEAD

Chrome shows the human experience, not every crawler path

Desktop Chrome executes client-side JavaScript and builds a live page DOM. A search fetcher may read only the first HTML response, while a CDN or web application firewall (WAF) may challenge or block its request before the page is delivered. Browsers do not automatically follow crawler rules in robots.txt, and opening a URL in Chrome does not test those rules.

Use the steps below to compare signals—not to impersonate a verified crawler. A command-line User-Agent string is only a label; it does not reproduce a provider's verified IP, TLS fingerprint, or complete crawler behavior.

STEP 01

Simulate crawler User-Agent requests from your terminal

Compare how your public edge responds when a request includes the OAI-SearchBot, Claude-SearchBot, or PerplexityBot User-Agent. Inspect status codes, redirects, response headers, and robots.txt. This is a limited request simulation—not proof that the provider has verified your site as an authorized crawler.

curl · crawler-labelled requests and policy checks
# Run these probes only against a site you own or are authorized to test.
ORIGIN='https://yourdomain.com'
TARGET="$ORIGIN/"

OAI_SEARCH_UA='Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; OAI-SearchBot/1.4; +https://openai.com/searchbot'
CLAUDE_SEARCH_UA='Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; Claude-SearchBot/1.0; +claudebot@anthropic.com'
PERPLEXITY_UA='Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot'

# Compare status and response headers for common AI search crawler labels.
curl -sS -L --max-redirs 5 -D - -o /dev/null \
  -w '\nFinal status: %{http_code}\n' -A "$OAI_SEARCH_UA" -- "$TARGET"
curl -sS -L --max-redirs 5 -D - -o /dev/null \
  -w '\nFinal status: %{http_code}\n' -A "$CLAUDE_SEARCH_UA" -- "$TARGET"
curl -sS -L --max-redirs 5 -D - -o /dev/null \
  -w '\nFinal status: %{http_code}\n' -A "$PERPLEXITY_UA" -- "$TARGET"

# Read robots.txt, then inspect policy and edge headers on the page response.
curl -sS -i -- "$ORIGIN/robots.txt" | sed -n '1,40p'
curl -sS -D - -o /dev/null -- "$TARGET" | sed -n '1,60p'
Check AI crawler access through your edge and WAF
STEP 02

Compare the initial HTML with the rendered page

Save the document response without executing scripts, then compare it with the page after Chrome has run JavaScript. Look for the main heading, meaningful body text, navigation links, and canonical metadata in the initial response. If these appear only after hydration, a fetcher that does not render JavaScript may see an incomplete page.

curl · save initial HTML and response headers
PAGE='https://yourdomain.com/important-page'

# Save the initial HTML response and its headers without running page JavaScript.
curl -sS -L --max-redirs 5 -D /tmp/ai-page-headers.txt \
  -o /tmp/ai-page.html -- "$PAGE"

printf '\n--- Response status and relevant headers ---\n'
grep -iE '^(HTTP/|content-type:|x-robots-tag:|content-signal:|content-usage:|cf-ray:|cf-cache-status:)' \
  /tmp/ai-page-headers.txt

printf '\n--- Initial HTML size and key element tags ---\n'
wc -c /tmp/ai-page.html
grep -oiE '<(title|h1|main)[^>]*>' /tmp/ai-page.html | head -n 20
  1. Open the same URL in Chrome DevTools and select the main document request in the Network panel.
  2. Compare its response body with the live DOM in Elements; use View page source or the saved file for the pre-JavaScript response.
  3. Reload with JavaScript disabled in DevTools. If key content disappears, render important text and links in the server response where practical.
Compare raw HTML visibility and rendered content
STEP 03

Inspect browser-agent capabilities with DevTools

For WebMCP-enabled browser experiences, check whether the current browser exposes the API, then review your page's forms and console or network errors. This read-only Console expression reports capability and form structure; it does not register a tool, submit a form, or prove that a separate agent supports the feature.

Chrome DevTools Console · read-only capability check
({
  page: location.href,
  readyState: document.readyState,
  modelContextPresent: "modelContext" in document,
  registerToolAvailable:
    typeof document.modelContext?.registerTool === "function",
  forms: Array.from(document.forms, form => ({
    action: new URL(form.action).pathname,
    method: form.method.toUpperCase(),
    namedFields: Array.from(form.elements)
      .filter(control => control.name)
      .map(control => control.name),
    labels: Array.from(form.querySelectorAll("label"))
      .map(label => label.innerText.trim())
  }))
})
  1. Open DevTools on your own page and run the expression in Console.
  2. Check whether forms have clear labels, expected methods, and named fields. Inspect Console and Network for failed requests or runtime errors.
  3. Test actual agent actions only in a safe test environment. Require server-side authorization and confirmation before any consequential action.
Check WebMCP and agent-action signals
STEP 04

Verify the fix at the public edge

After changing a CDN rule, rendering strategy, or policy file, retest the deployed hostname and the exact page path. Confirm the final redirect destination, status, content type, relevant headers, and the current robots.txt. Check provider-verified crawler events where available; one User-Agent probe cannot confirm production crawler access.

curl · recheck a page after deployment
ORIGIN='https://yourdomain.com'
PAGE="$ORIGIN/important-page"

# Confirm the final URL, status, and content type after a change.
curl -sS -L --max-redirs 5 -o /dev/null \
  -w 'status=%{http_code} content_type=%{content_type} final_url=%{url_effective}\n' \
  -- "$PAGE"

# Recheck the public policy file and the final response headers.
curl -sS -i -- "$ORIGIN/robots.txt" | sed -n '1,40p'
curl -sS -L -D - -o /dev/null -- "$PAGE" | sed -n '1,60p'
  • Review CDN/WAF logs for the actual request outcome and challenge or block reason.
  • Compare robots.txt, X-Robots-Tag, Content-Signal, Content-Usage, and any linked RSL license for consistency.
  • Repeat the initial-HTML and browser checks after deployment; cached responses can differ from the latest origin configuration.

Frequently asked questions

Does changing curl's User-Agent make a request a verified AI crawler?

No. It changes the User-Agent text only. It does not reproduce a crawler's verified network identity, IP range, TLS fingerprint, or provider behavior.

Why can Chrome show content that a crawler does not see?

Chrome runs page JavaScript and builds a live DOM. A fetcher that reads only the first HTML response may see an empty application shell or less content.

Does a 200 response prove that an AI search crawler can reach my site?

No. It confirms only that this request received a successful response. Check provider-verified bot signals and your CDN or WAF logs for actual crawler requests.

Can Chrome DevTools prove that a WebMCP tool works for every agent?

No. DevTools can inspect page markup, browser API support, and console or network errors. WebMCP support and agent behavior still vary by browser and client.