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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| reason | No | ||
| confirm | No | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||