spa_upload
Upload files to file input elements in single-page apps. Specify a CSS selector and file path; optionally navigate to a URL first.
Instructions
Upload a file 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": {
"selector": "<selector>"
},
"name": "spa_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to navigate to first (optional) | |
| file | No | Path to file to upload | |
| files | No | Multiple file paths to upload | |
| session | No | Session ID | default |
| selector | Yes | CSS selector for file input | |
| screenshot | No | Take screenshot after action |