Upload file
browser_uploadPuts files directly into a browser file input without showing the OS file picker, including custom attach buttons. Use it to automate uploads by file input ref or after clicking an attach button.
Instructions
Puts files into a file input (no OS file picker shown to the user). Give ref of the file input ( or its label), or for a site's custom "attach" button, click it first with browser_click (CDPM intercepts the picker) and call without ref. The site gets the same events as a human file pick.
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": {
"slot": "<slot>",
"files": "<files>"
},
"name": "browser_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | File input ref. Omit to use the file picker just opened by a click | |
| tab | No | Target tab: number (1, 2…) or ID ("t7"). Use the stable ID when agents share a slot. Required for action tools when there are multiple tabs. | |
| read | No | Append the page after the action (no separate read needed): text=body text, snapshot=snapshot page 1 (with refs), changes=only lines added/removed since your last snapshot (shortest; full page if the page changed) | |
| slot | Yes | Browser slot 1-30. "3", "slot 3", "browser 3" → 3. If the user gives a port like 14052, subtract 14049. | |
| agent | No | Your display name, shown to other agents. Subagents must always set it. Default "claude-1e1b". | |
| files | Yes | File paths on this PC (absolute recommended) | |
| summary | No | One-line note of what you are doing (e.g. "comparing laptop prices"). Shown in browser_status (not the status line). Omit to keep the previous one. | |
| multiSlot | No | true only when one agent must handle several slots together (e.g. comparing). Normally omit (one agent = one slot; use subagents for the rest) |