chrome_upload_file
Upload local files directly to file input elements in Chrome via DevTools protocol, bypassing the native file picker. Specify absolute paths and target tab by URL or title.
Instructions
Attach local files to an element using Chrome DevTools file-input control. Does NOT open the native file picker.
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": {
"paths": "<paths>"
},
"name": "chrome_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | ||
| paths | Yes | Local absolute file paths to upload. | |
| selector | No | ||
| targetId | No | Chrome tab id to target. | |
| background | No | If true, avoid explicit Chrome focus/tab activation (default). Pass false to allow foreground work. | |
| urlIncludes | No | Match the target tab by URL substring. | |
| titleIncludes | No | Match the target tab by title substring. |