Skip to content

Encourage accessibility snapshots in Playwright results - #169

Open
rgarcia wants to merge 1 commit into
mainfrom
hypeship/clawbench-aria-snapshot
Open

Encourage accessibility snapshots in Playwright results#169
rgarcia wants to merge 1 commit into
mainfrom
hypeship/clawbench-aria-snapshot

Conversation

@rgarcia

@rgarcia rgarcia commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update the execute_playwright_code input description to ask every invocation for useful page state
  • recommend a region-scoped ariaSnapshot() after navigation and interaction
  • retain compact targeted values for read-only queries and discourage full DOM/body dumps

Why

Browser agents need the result of each Playwright call to decide the next action. Explicitly returning a compact accessibility snapshot keeps that state useful without producing a full-page payload.

This is intentionally separated from #162 so the ClawBench workflow can benchmark this description-only change against its base SHA.

Replay

Watch the successful Kernel MCP ClawBench replay for v2-1202-beauty-cart-quantity-theordinary at 4× speed.

The task requires the agent to find Multi-Peptide + HA Serum, open the correct product, change its quantity to 2, and add it to the cart. ClawBench intercepted the resulting Cart-AddProduct request and the strict judge verified that it contained the correct product and quantity. The run scored 1.0 for interception and strict reward.

This run exposed only Kernel MCP execute_playwright_code to Codex with GPT-5.6 Luna. Its source was the exact description-change commit 37273e3, and the trajectory used ariaSnapshot() in 11 browser calls. The published 51-second replay contains no credentials, signed Kernel URLs, session IDs, or private benchmark artifacts.

Test plan

  • bun test src/lib/mcp/register.test.ts
  • bunx tsc --noEmit
  • bunx prettier --check src/lib/mcp/tools/playwright.ts

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mcp Ready Ready Preview Aug 30, 2026 6:23pm

@rgarcia rgarcia changed the title Encourage useful Playwright state returns Encourage accessibility snapshots in Playwright results Aug 28, 2026
@rgarcia
rgarcia force-pushed the hypeship/clawbench-aria-snapshot branch from ace5e7a to 54ca49b Compare August 28, 2026 23:34
@rgarcia
rgarcia force-pushed the hypeship/clawbench-aria-snapshot branch from 54ca49b to a2bcbcc Compare August 29, 2026 00:35
Base automatically changed from hypeship/harbor-mcp-benchmark to main August 30, 2026 18:23
@rgarcia
rgarcia force-pushed the hypeship/clawbench-aria-snapshot branch from a2bcbcc to 474b3b3 Compare August 30, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant