Open a file picker in the conversation
upload_media_widgetOPENS A FILE PICKER IN THIS CONVERSATION: the user chooses videos or photos from their computer and they land on their aicut account for every tool. CALL IT IMMEDIATELY, WITHOUT ASKING ANYTHING FIRST, the moment the user refers to a video or image file on their machine ('upscale the clip in my Downloads', 'use the picture on my desktop as the character'): do not ask for a path, size, format or URL, the picker asks for the file. A photo attached in chat does not reach aicut: ask the user to choose it again in the picker. WHEN NOT: the file is already a URL (public https, or from an earlier generation): pass it straight to the tool that needs it. Also not when you can run a shell command on their machine and no card renders (a terminal, a script, CI): use upload_media. If the user says they cannot see a picker, fall back to upload_media and do not call this again. IN THE SAME REPLY: say the picker is open (several files is fine) and to answer here once uploaded; ask what the task needs (what the clip shows, or what the file is for), and stop: no polling, no upload_media or confirm_upload. On the answer, take the newest url of that kind from list_uploads (none: upload unfinished, say so). TAKES MP4/MOV up to 50 MB and PNG/JPEG/WEBP up to 20 MB. Free (daily media allowance). OUTPUT: for the card: do not paste it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||