upload
Attach a local file to a web page by auto-detecting its file input or a drag-and-drop target. Open the page's file picker UI first; use dropSelector when no input exists.
Instructions
Attach a local file to the page (no extension can touch the OS file picker). Open the upload UI first. Auto-picks a matching file input; for editors that only accept drag-and-drop (X Article, Notion) pass dropSelector instead. Any size via a file input (browser reads the path); drag-drop caps at 48MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the local file. | |
| tabId | No | Target tab id. Omit to use the active controlled tab. | |
| spaceId | No | Pin this command to an owned BeatBrowser TaskSpace. Also pass its tabId. | |
| selector | No | CSS selector of the file input. Omit to auto-detect by accept type. | |
| dropSelector | No | Drop the file onto this element instead. Use when the page has no file input. |