upload_file
Upload a local file to a file input by providing the absolute path and element selector during Selenium browser automation.
Instructions
Upload a file by sending its absolute path to an 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>",
"file_path": "<file_path>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Strategy | css |
| timeout | No | Seconds | |
| selector | Yes | Locator value | |
| file_path | Yes | Absolute path to the file to upload |