comet_upload
Upload a local file to a file input on the current page to attach images or documents to forms, posts, or upload dialogs. Provide the absolute file path, with optional CSS selector.
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 |