browser_upload_file
Upload files to web forms by specifying a CSS selector and local file path for automated browser testing and interaction.
Instructions
Upload a file to a file input element.
Note: The file must exist on the machine running this MCP server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selector": "<selector>",
"file_path": "<file_path>"
},
"name": "browser_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector for the file input element | |
| file_path | Yes | Path to the file to upload (on your local machine) | |
| timeout | No | Timeout in milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |