Skip to main content
Glama

Better Playwright MCP

by livoras

browserFileUpload

Upload files to specified web elements efficiently using semantic snapshots, reducing HTML token usage by up to 90% in browser automation workflows.

Instructions

上传文件到指定元素

Input Schema

NameRequiredDescriptionDefault
pageIdYes页面ID
pathsYes要上传的文件路径数组
refYes文件输入元素的xp引用值
waitForTimeoutNo操作后等待获取快照的延迟时间(毫秒,默认2000)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "pageId": { "description": "页面ID", "type": "string" }, "paths": { "description": "要上传的文件路径数组", "items": { "type": "string" }, "type": "array" }, "ref": { "description": "文件输入元素的xp引用值", "type": "string" }, "waitForTimeout": { "description": "操作后等待获取快照的延迟时间(毫秒,默认2000)", "type": "number" } }, "required": [ "pageId", "ref", "paths" ], "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