browser_upload_files
Attach local files to a file input by clicking its selector, button, or label and supplying allowed absolute paths; handles hidden inputs via labels and supports multiple files when the input allows.
Instructions
Attach local files to a file input, the way a person picks them.
selector is the <input type=file> itself, or the button or label that
opens its chooser: that is clicked with the real pointer and the chooser
answered with paths. A hidden input is opened through its label; with
none, pass the button that opens it. Several files need an input that
takes several; otherwise upload them one call at a time.
Each path is absolute and names a regular file inside a directory listed
in INVISIBLE_MCP_UPLOAD_DIRS, through no hidden directory; with none
listed, uploads are off. Never use browser_evaluate to set files.
Inside an iframe, pass the snapshot's frame.
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>",
"paths": "<paths>"
},
"name": "browser_upload_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | ||
| paths | Yes | ||
| browser | No | Defaults to `main`; `support` is the helper beside it. | |
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |