browser_upload
Sets files on a file input without opening the OS picker, so headless or phone browsers can upload. Returns the accepted file names and count.
Instructions
Put files into a file input without opening the OS picker (which a headless or phone browser cannot answer). Absolute paths on this machine; the input must be . Returns the file names and how many the input accepted.
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>",
"files": "<files>"
},
"name": "browser_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Ref of the file input (e12), or its CSS selector | |
| files | Yes | Absolute paths on this machine |