Skip to main content
Glama

mcp-playwright

playwright_upload_file

Upload files to web page file inputs using a CSS selector and file path with this browser automation tool. Simplify file handling in automated workflows with direct integration into Playwright-based environments.

Instructions

Upload a file to an input[type='file'] element on the page

Input Schema

NameRequiredDescriptionDefault
filePathYesAbsolute path to the file to upload
selectorYesCSS selector for the file input element

Input Schema (JSON Schema)

{ "properties": { "filePath": { "description": "Absolute path to the file to upload", "type": "string" }, "selector": { "description": "CSS selector for the file input element", "type": "string" } }, "required": [ "selector", "filePath" ], "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/executeautomation/mcp-playwright'

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