browser_upload
Attach local files to a file input element by CSS selector or @eN ref, with optional tab and iframe targeting.
Instructions
Attach local files to a 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": {
"selector": "<selector>",
"files": "<files>"
},
"name": "browser_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab index string (e.g. '0'), targetId, or URL/title substring. | |
| files | Yes | Local file paths. | |
| frame | No | Iframe #fN, id, URL substring, or 'any'. | |
| selector | Yes | CSS selector or @eN ref. |