upload_file
Uploads a local file to a page by targeting a file input element or any element that opens a file chooser, automating form submissions and file-based interactions during browser sessions.
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. |