upload_file
Uploads one or more local files to a file input element matched by a CSS selector, with optional tab targeting for browser automation.
Instructions
Upload file(s) to a file input 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": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Array of absolute file paths to upload | |
| tabId | No | Tab ID (optional) | |
| selector | Yes | CSS selector of the <input type="file"> element |