upload_file
Uploads one or more local file paths to a page by targeting a file input element or a chooser-opening element identified by its UID from a snapshot.
Instructions
Upload a file through a provided element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | The uid of the file input element or an element that will open file chooser on the page from the page content snapshot | |
| pageId | Yes | Targets a specific page by ID. | |
| filePaths | Yes | One or more files paths to upload. File paths have to be local to the browser instance (not the MCP). | |
| includeSnapshot | No | Whether to include a snapshot in the response. Default is false. |