upload_file
Attach one or more local files to a webpage's file picker. Specify the file input selector and paths; missing paths are reported before any files are attached.
Instructions
Attach one or more local files to a file picker.
This hands a file on this machine to a page, which is why it asks for its
own permission, once per call. selector is the input[type=file];
a styled picker often keeps it hidden, and that is fine — a hidden input
still accepts files. Missing paths are reported before anything is
attached, so a gated call never leaves a picker half-filled.
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| reason | No | ||
| confirm | No | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||