Skip to main content
Glama

Better Playwright MCP

by livoras

browserType

Automate text input into web elements using Playwright, specifying page ID, element reference, and text. Optionally enable slow typing, submit actions, and wait for snapshots post-input.

Instructions

在页面元素中输入文本

Input Schema

NameRequiredDescriptionDefault
pageIdYes页面ID
refYes元素的xp引用值
slowlyNo是否慢速输入(默认false)
submitNo输入后是否按回车提交(默认false)
textYes要输入的文本
waitForTimeoutNo操作后等待获取快照的延迟时间(毫秒,默认2000)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "pageId": { "description": "页面ID", "type": "string" }, "ref": { "description": "元素的xp引用值", "type": "string" }, "slowly": { "description": "是否慢速输入(默认false)", "type": "boolean" }, "submit": { "description": "输入后是否按回车提交(默认false)", "type": "boolean" }, "text": { "description": "要输入的文本", "type": "string" }, "waitForTimeout": { "description": "操作后等待获取快照的延迟时间(毫秒,默认2000)", "type": "number" } }, "required": [ "pageId", "ref", "text" ], "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