upload_file
Attach local files to a browser file input as if the user selected them, enabling agents to submit forms that require file uploads.
Instructions
Attach local files to a file input, as if the user picked them.
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": {
"ref": "<ref>",
"paths": "<paths>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref from the latest snapshot, e.g. "e14". | |
| tab | No | Tab handle from list_tabs, e.g. "chrome:812". Optional when only one tab is shared. | |
| paths | Yes | Absolute paths on this machine. |