upload_next
Arm the next native file chooser of the active tab with files so upload buttons without an input[type=file] can receive them, then click the button; expires after timeout.
Instructions
Arm the NEXT native file chooser of the active tab with files, for upload buttons that have no input[type=file] in the DOM. Then click the button (any verb). One shot; expires after timeout_s. Choosers are intercepted only while armed. Check with upload_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| lease | No | Optional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env. | |
| session | No | Optional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'. | |
| timeout_s | No | Arm lifetime in seconds (default 30). |