Upload files
uploadAttach local files to a browser file input by supplying one or more paths; resolve relative paths from the current directory and expand ~ for home paths.
Instructions
Attach local files to a file input. Paths are resolved from the current directory; ~ is expanded.
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": "upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from the latest snapshot, e.g. e12. Preferred over selectors. | |
| name | No | Accessible name to combine with role. | |
| role | No | ARIA role, e.g. button, link, textbox, checkbox, combobox. | |
| text | No | Visible text to match (first match wins). | |
| exact | No | Require exact text/name match. | |
| paths | Yes | Local file paths. | |
| confirm | No | Confirm a high-impact action when the server policy is ask. | |
| observe | No | Return a compact change observation after the action (default true). | |
| selector | No | CSS selector (use when no ref is available). |