Skip to main content
Glama

Playwright MCP Server

by devskido
MIT License
10,475

playwright_upload_file

Upload a file to a webpage's file input element by specifying its CSS selector and the file's absolute path. Automates file uploads in browser environments using Playwright MCP Server.

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/devskido/customed-playwright'

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