Upload
browser_uploadAttaches files from this machine to a page's file input, using the input, its label, or its chooser button, and reports the attachments and on-screen changes.
Instructions
Attaches files from this machine to a file input by ref: the input, its label, or the button that opens its file chooser. Use it instead of clicking a file input. Paths are absolute or ~/, inside the server's home; credential, key, history and browser-profile files are refused. Reports each file attached and the changes on screen.
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": {
"ref": "<ref>",
"files": "<files>"
},
"name": "browser_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Ref of the file input, its label, or the button that opens its file chooser (e12, f2e7 …), as browser_snapshot or browser_find showed it. | |
| files | Yes | The files to attach, as paths on this machine inside the server's home: absolute, or starting with ~/. | |
| profile | No | Which browser profile (a separate signed-in session) to use. Leave it out for the default one; name another only when the user's task names it. Profiles: default. | default |