ui_upload
Attach files to a file input by providing absolute paths, bypassing the operating system's file picker that automation cannot drive.
Instructions
Attach one or more local files to a file input, without opening the operating system's file picker — which automation cannot drive at all. Give the absolute paths of files on the machine running Chrome.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Which match to use when several qualify, 0-based. | |
| role | No | Narrow the matches to this ARIA role. | |
| text | No | Visible text on the control. Matches the innermost element that carries it, and follows a <label> to its input. | |
| exact | No | Require the whole text to match rather than a substring. | |
| files | Yes | Absolute paths to the files to attach. | |
| frame | No | 'main' (default) or a substring of a frame's origin/name. Single-page apps often render the screen you want in a child frame. | main |
| testid | No | Value of a test attribute (data-testid and friends — see the testAttributes setting). | |
| selector | No | CSS selector. Descends into open shadow roots. | |
| timeout_ms | No | How long to wait for the element to become actionable before giving up. |