Upload files
file_uploadSet files on an element by ref to local file paths, as if the user picked them, so you can test uploads or attach files in a Firefox browser session.
Instructions
Set the files of an element (by ref) to local file paths, as if the user picked them. Use computer screenshot save_to_disk to upload a screenshot.
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": {
"tabId": "<tabId>",
"ref": "<ref>",
"paths": "<paths>"
},
"name": "file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Ref of the file input. | |
| paths | Yes | Absolute paths of local files. | |
| tabId | Yes | Tab ID from tabs_context / tabs_create. |