Skip to main content
Glama
DailyNoBug

Playwright Browser MCP Server

by DailyNoBug

Generate Playwright Script

browser.generate_playwright_script

Generate a Playwright test script from your current browser session to automate user actions, save authentication states, and extract page data.

Instructions

Generate a Playwright test script from current session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
sessionIdYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
notesYes
languageYes
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must disclose behavior. It adds minimal context by saying 'from current session', but it does not explain what the script contains, how the session is used, whether there are side effects, or any limitations. The tool's behavior remains largely opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no unnecessary words. It is concise and immediately communicates the core function.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

While an output schema exists, the description is too sparse for a generation tool with complex behavior. It does not explain the generation logic, the role of the session, or the differences between target options. Given no annotations and minimal detail, the description is insufficient for an agent to fully understand the tool's capabilities and limitations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not mention either parameter. The 'target' parameter's enum values (login_flow, current_page, extraction_flow) are completely unexplained, and 'sessionId' is only implied by 'current session'. The description adds no semantic value beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Generate' and resource 'Playwright test script', with the source 'current session'. It distinguishes itself from sibling generation tools like generate_page_object and generate_data_schema by naming the specific output type.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool vs alternatives. It does not mention prerequisites, context (e.g., after navigating), or exclusions. The single sentence simply states what it does without any usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DailyNoBug/PlaywrightBrowserMCPServer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server