upload_file
Uploads one or more local files to a browser input field selected by a CSS selector, using absolute file paths for browser automation.
Instructions
Upload file(s) to input.
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>",
"filePaths": "<filePaths>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | ||
| selector | Yes | ||
| filePaths | Yes | Absolute path(s) to file(s) |