Upload Local File
browser_upload_fileProvide local files to a web page file input during authorized tests by specifying an exact CSS selector and local file paths.
Instructions
Use when a full-profile authorized test explicitly requires providing local files to a page file input. Preconditions: acknowledgeFileAccess: true, an exact selector, and intended local paths are required. Next: continue the upload flow and verify the resulting request or UI state. Sensitivity: this sends local file contents to the target site and can expose private data.
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| selector | Yes | ||
| timeoutMs | No | ||
| acknowledgeFileAccess | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |