upload_file
Upload a local file through a specified browser element by providing its UID and file path. Automates file selection for browser automation.
Instructions
Upload a file through a provided element.
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": {
"uid": "<uid>",
"filePath": "<filePath>"
},
"name": "upload_file"
}
}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 | |
| filePath | Yes | The local path of the file to upload | |
| includeSnapshot | No | Whether to include a snapshot in the response. Default is false. |