Upload files
upload_fileAttaches local files from absolute paths to a specified file input element, enabling automated uploads when a page requires file selection.
Instructions
Attaches local files (absolute paths on this machine) to a file input element.
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>",
"paths": "<paths>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref from page_snapshot or find, e.g. "e12". | |
| paths | Yes | Files to attach. | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). |