file_upload
Upload files to a file input element on a webpage. Specify tab ID, CSS selector, and file paths to automate file selection for Chrome automation.
Instructions
Upload files to a file input element on the page. Pass intent="..." (≤120 chars) to label this action in audit logs.
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": {
"tabId": "<tabId>",
"selector": "<selector>",
"filePaths": "<filePaths>"
},
"name": "file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID to upload files to | |
| intent | No | Human-readable label for this action in audit logs (≤120 chars) | |
| selector | Yes | CSS selector for the file input element | |
| filePaths | Yes | File paths to upload. Paths must resolve under configured file_upload roots. |