Upload a file
file_managerUpload a local file (image or video) to Postey's CDN and get back a cdn_url for a post's media. The file goes straight to the CDN; the assistant receives only the URL, never the file contents. It is for files on the user's machine; upload_media handles files that already have a public URL. The returned cdn_url is the media URL as given; a URL built from an id, filename or path points at no stored object.
It does not upload anything by itself: it returns a widget that the client renders and the user drops a file into. A client that cannot render MCP Apps UI uploads nothing, and no error says so; upload_media with source_type='url' or 'base64' works on those clients.
Media uploaded through Postey's MCP surface cannot currently be deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | The rendered widget; presentation only. | |
| state | Yes | ||
| $prefab | No | Prefab envelope version. |