upload_file
Upload a file to a web input element by specifying the file's absolute path and a CSS/XPath selector. Supports multiple locator strategies and configurable wait time.
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 | Locator strategy | css |
| timeout | No | Wait timeout in seconds | |
| selector | Yes | CSS selector, XPath, or other locator value | |
| file_path | Yes | Absolute path to the file to upload |