upload-files
Attach staged local files to a file input or browser file chooser so automated form submissions include the intended uploads; the site may begin uploading immediately.
Instructions
Attach staged local files to a file input. Use chooser for a button that opens the browser file chooser. The site may upload the files immediately.
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": {
"pageId": "<pageId>",
"selector": "<selector>",
"fileNames": "<fileNames>"
},
"name": "upload-files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | input | |
| pageId | Yes | ||
| timeout | No | Maximum action time in milliseconds. Use 0 for no timeout. | |
| selector | Yes | ||
| fileNames | Yes | Plain file names from the upload directory. Paths are not accepted. | |
| sessionId | No | Browser session ID. Defaults to 'default'. |