Skip to main content
Glama
ma-pony

mcp-playwright

by ma-pony

create_browser_session

Creates a new browser session for web page interaction and data extraction. Configure browser type, headless mode, viewport size, and timeout.

Instructions

创建新的浏览器会话

Args:
    browser_type: 浏览器类型 (chromium, firefox, webkit)
    headless: 是否无头模式
    viewport_width: 视口宽度
    viewport_height: 视口高度
    timeout: 默认超时时间(毫秒)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
browser_typeNochromium
headlessNo
viewport_widthNo
viewport_heightNo
timeoutNo
Behavior2/5

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

No annotations provided, and the description does not disclose important behaviors such as return value (session ID?), side effects of multiple calls, or required permissions. It only lists parameters.

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 extremely concise: one line for purpose followed by a bullet list of parameters. No unnecessary words, and the structure makes it easy to scan.

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?

Despite listing all 5 parameters, the description lacks critical context: no mention of return value, no indication that the session must be closed with a sibling tool, and no explanation of what constitutes a session. Given no output schema, this is a significant gap.

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

Parameters4/5

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

With 0% schema coverage, the description compensates by explaining each parameter in Chinese, including example values for browser_type (chromium, firefox, webkit) and clarifying headless meaning. However, it could be more detailed, e.g., units for timeout.

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 states '创建新的浏览器会话' (create new browser session), which is a specific verb and resource. It clearly distinguishes from sibling tools like click_element and close_browser_session which operate on existing sessions.

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

Usage Guidelines3/5

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

Usage is implied as the tool to start a browser session before using other tools, but no explicit guidelines on when to use versus alternatives, nor any prerequisites or exclusions.

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/ma-pony/mcp-playwright'

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