upload_file
Upload a file to a specified file input element in a live Safari browser using the element's UID and a local file path.
Instructions
Upload a file through a provided file input 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 on the page from the page content snapshot | |
| filePath | Yes | The local path of the file to upload |