comet_upload
Upload local files to web page file inputs for attaching images, documents, or other files to forms and upload dialogs.
Instructions
Upload a file to a file input on the current page. Use this to attach images, documents, or other files to forms, posts, or upload dialogs. The file must exist on the local filesystem.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the file to upload (e.g., '/home/user/image.png' or 'C:\Users\user\image.png') | |
| selector | No | Optional CSS selector for the file input element. If not provided, auto-detects the first file input on the page. | |
| checkOnly | No | If true, only checks if file inputs exist on the page without uploading |