upload_file
Attach local files from allowed folders to a page's file input by targeting the input, upload button, or upload area; the related file input is located automatically.
Instructions
Attach local file(s) to a file input. Target the input or the upload button/area (it finds the related file input); omit the target if the page has a single file input. Files must be inside the allowed upload folders (default: Downloads, Desktop, Documents, Pictures).
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from snapshot/find, e.g. "e12" (preferred). | |
| paths | Yes | ||
| tabId | No | Tab ID from tabs_list. Omit for the active tab. | |
| element | No | Visible text or label of the element, e.g. "Sign in" (fallback). | |
| profile | No | Chrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile. | |
| selector | No | CSS selector (fallback). |