browser_set_file_input
Attach local files to a file input selector in a Chromium browser to automate file uploads during web testing.
Instructions
Attach local files to a file input selector.
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": {
"session_id": "<session_id>",
"selector": "<selector>",
"file_paths": "<file_paths>"
},
"name": "browser_set_file_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| file_paths | Yes | ||
| session_id | Yes | ||
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||