browser_upload_file
Upload local files by targeting a page's file input or upload button via ref, selector, or visible text for browser automation.
Instructions
Upload local file(s) through a file input or an upload button (ref/selector/text).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from browser_snapshot, e.g. "e12" | |
| path | No | ||
| text | No | Visible text to match (alternative to ref) | |
| paths | No | ||
| selector | No | CSS or Playwright selector (alternative to ref) |