browser_upload_file
Select an existing local file in a browser file input; the native host validates an absolute regular-file path and rejects files over 40 MiB.
Instructions
Select an existing local file in a file input. Native host validates an absolute regular-file path and size <=40 MiB.
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>",
"path": "<path>"
},
"name": "browser_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container. | |
| path | Yes | ||
| tabId | No | Optional browser tab id to act on instead of the focused tab. |