Upload Files
upload_filesSet files on an input[type=file] using paths within the artifact directory, so Playwright browser workflows can test or automate file uploads.
Instructions
Set files on an input[type=file]. File paths must be inside the artifact directory.
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": {
"selector": "<selector>",
"paths": "<paths>"
},
"name": "upload_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| pageId | No | Page id. Defaults to the active page. | |
| selector | Yes |