Headless browser automation for Claude Code using Playwright WebKit
Browse server has 25 tools with basic schemas and descriptions, but significant quality gaps prevent production use. Tool names lack consistent verb prefixes (goto, click, type are good; favicon, convert, resize lack action clarity). Descriptions are present but generic (avg ~40 chars, well below 194-char baseline). Parameter descriptions exist but are minimal. No output schemas documented. Error handling is absent, tools return success/failure with no recovery guidance. Image manipulation tools (favicon, convert, resize, crop, compress, thumbnail) are loosely related to browser automation and dilute focus. No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Security concerns: eval() tool executes arbitrary JavaScript with no sandboxing or permission checks; cookies/storage tools modify sensitive state without validation.
Navigate back in browser history
Click on an element matching the CSS selector
Close the browser
Compress an image with specified quality
Convert image to different format
Get or set cookies for the current page
Crop an image
Configure dialog (alert/confirm/prompt) handling
eval() tool executes arbitrary JavaScript with no sandboxing, permission checks, or input validation. Poses critical security risk if agent is compromised or prompt-injected.
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract required fields. Violates pattern:tool and pattern:response-shaper.
No error handling or recovery guidance. Tools return {ok: false, error: string} with no actionable next steps. Violates pattern:recovery-guide and pattern:error-classification.
Image manipulation tools (favicon, convert, resize, crop, compress, thumbnail) are out of scope for browser automation. They dilute the tool set and violate pattern:tool (single responsibility).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 47 | 2026-07-28+ | v2 |
Execute JavaScript code in the page context
Generate favicon set from screenshot or input image
Navigate forward in browser history
Navigate to a URL
Get the HTML content of the current page
Intercept and mock network requests
Open a new browser page/tab
Preview an action by highlighting an element
Query elements by CSS selector and return their attributes
Reload the current page
Resize an image
Take a screenshot of the current page
Get or set localStorage/sessionStorage
Generate a thumbnail from an image
Type text into an input element
Get the current page URL
Wait for a specified duration in milliseconds
Descriptions are generic and under 100 chars (avg ~40 chars vs 194-char baseline). Missing WHEN to use, prerequisites, and state-modification warnings. Violates pattern:tool-description.