file_upload
Uploads a local file to a specified file input element in a Chrome tab using a CSS selector and absolute file path.
Instructions
Upload a file to a file input element (input[type=file])
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": {
"tabId": "<tabId>",
"selector": "<selector>",
"filePath": "<filePath>"
},
"name": "file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID | |
| filePath | Yes | Absolute path to the file to upload | |
| selector | Yes | CSS selector of the input[type=file] element |