Upload file
browser_uploadUpload local files into a webpage's file input without showing the OS picker. Use an input ref, or click a custom attach button first and omit the ref.
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.
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-68d9". | |
| 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) |