set_file_input
Assigns host file paths to a file input element chosen by CSS selector, enabling automated upload tests and form interactions in Electron apps.
Instructions
Set files on an via DOM.setFileInputFiles (host paths)
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": "set_file_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| selector | Yes | ||
| targetId | No | ||
| processId | No | Process ID. If omitted, uses the single running app. |