comet_upload
Upload local files to web forms and dialogs by attaching images, documents, or other files from your computer to file inputs on web pages.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "comet_upload"
}
}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 |