playwright-browser-file-upload

To upload files through a file input, provide one or more file paths for a page file chooser.

⭐6stars🔀3forks📁View on GitHub🕐Updated Jan 7, 2026

When & Why to Use This Skill

The playwright-browser-file-upload skill enables Claude to interact with web-based file input elements programmatically. By automating the file chooser dialog, it allows for the seamless upload of single or multiple files to websites using Playwright, bridging the gap between local file systems and web-based workflows.

Use Cases

  • Automated Form Completion: Automatically upload required documentation, such as resumes or identification files, when filling out online application forms.
  • Bulk Content Management: Streamline the process of uploading multiple images, videos, or data files to CMS platforms or social media dashboards without manual intervention.
  • End-to-End Testing: Enhance QA automation by simulating real user interactions with file upload components to verify website functionality and error handling.
  • Data Migration: Facilitate the movement of local datasets or reports into web-based analytics tools or cloud storage interfaces that require manual file selection.
nameplaywright-browser-file-upload
description"To upload files through a file input, provide one or more file paths for a page file chooser."

Usage

Use the MCP tool dev-swarm.request to send the payload as a JSON string:

{"server_id":"playwright","tool_name":"browser_file_upload","arguments":{}}

Tool Description

Upload one or multiple files

Arguments Schema

The schema below describes the arguments object in the request payload.

{
  "type": "object",
  "properties": {
    "paths": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The absolute paths to the files to upload. Can be single file or multiple files. If omitted, file chooser is cancelled."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Background Tasks

If the tool returns a task id, poll the task status via the MCP request tool:

{"server_id":"playwright","method":"tasks/status","params":{"task_id":"<task_id>"}}