Upload a file
cotlet_browser_uploadPuts files into file field or upload button element: each file is {"url": "https://..."} or {"file_id": "..."} of a file uploaded to Cotlet; up to 10 files, 20 MB each. In ChatGPT, a file of the conversation (one you made or the user attached) goes in file, no upload_url needed. Answers the page after it (elements and text in view).
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": {
"element": "<element>"
},
"name": "cotlet_browser_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Leave out. Only an app slug cotlet_app_guide names. | |
| tab | No | Tab id of the last answer. | |
| file | No | A file of the ChatGPT conversation; ChatGPT fills it. | |
| files | No | The files. | |
| element | Yes | Element number from the last answer. |