Skip to main content
Glama

Better Playwright MCP

by livoras

browserPressKey

Simulate keyboard key presses on web pages within automation workflows, supporting specific elements and customizable delays for precise interactions.

Instructions

按键盘按键

Input Schema

NameRequiredDescriptionDefault
keyYes按键名称,如 'Enter', 'Tab', 'ArrowDown' 等
pageIdYes页面ID
refNo可选:元素的xp引用值,如果指定则在该元素上按键
waitForTimeoutNo操作后等待获取快照的延迟时间(毫秒,默认2000)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "key": { "description": "按键名称,如 'Enter', 'Tab', 'ArrowDown' 等", "type": "string" }, "pageId": { "description": "页面ID", "type": "string" }, "ref": { "description": "可选:元素的xp引用值,如果指定则在该元素上按键", "type": "string" }, "waitForTimeout": { "description": "操作后等待获取快照的延迟时间(毫秒,默认2000)", "type": "number" } }, "required": [ "pageId", "key" ], "type": "object" }

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/livoras/better-playwright-mcp'

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