Upload File to Matching Input
upload_fileAttach local files to any file input field by matching its label or description. Supports both visible and hidden inputs.
Instructions
Attach one or more local files to the file <input> matching
description.
Wraps Playwright's set_input_files — works on both visible and
hidden file inputs (most modern UIs hide the real input behind a
styled label). For drag-drop upload zones that don't have an
underlying <input type=file>, this won't work; use drop_file.
Args: description: Match the file input. "file", "upload", or the visible label text. paths: List of absolute paths to files to attach. Single file: pass a one-element list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| description | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |