Skip to main content
Glama

Upload Media

postly_upload_media

Imports media into Postly storage independently of a post mutation. Accepts a client-provided file reference, URL, data URL, or base64 payload. Returns a durable Postly media object only when complete; a 202 processing result requires a later list_media check with its idempotency_key before creating or scheduling a post.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPublic or temporary URL to import into Postly storage when no file reference is available.
dataNoBase64 content or a data URL for agents that can provide bytes instead of a URL.
fileNoClient-provided file reference for an attached, selected, or generated file.
typeNoOptional MIME type such as image/png, video/mp4, or application/pdf.
alt_textNoOptional alt text to carry forward into the returned Postly media object.
file_nameNoOptional file name. Required when using data/base64 without a file reference.
workspace_idNoDestination Media Library workspace ID. Omit to use the oldest available writable workspace within this connection. Check media_library in the result for its workspace_id and registration status.
idempotency_keyNoOptional stable key for safely retrying the same upload. Postly derives one automatically for file references and URLs.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
mediaNo
usageNo
statusNo
messageNo
next_stepNo
raw_uploadNo
media_libraryNo
idempotency_keyNo
retry_after_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / workspace_id
      Added value: +{
      +  "description": "Destination Media Library workspace ID. Omit to use the oldest available writable workspace within this connection. Check media_library in the result for its workspace_id and registration status.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / media_library
      Added value: +{
      +  "type": "object"
      +}
  2. Changed4 schema fields changed
    • addedOutput schema / properties / idempotency_key
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / next_step
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / retry_after_seconds
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Optional stable key for safely retrying the same upload. Postly derives one automatically for file references and URLs.",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / file / description
      Previous value: -"ChatGPT/OpenAI file reference for an attached, selected, or generated file. ChatGPT supplies this when the tool metadata marks file as an openai/fileParams field."New value: +"Client-provided file reference for an attached, selected, or generated file."
  5. Changed1 schema field changed
    • removedInput schema / properties / file / properties / download_url / format
      Removed value: -"uri"
  6. Changed1 schema field changed
    • addedInput schema / properties / file / properties / download_url / format
      Added value: +"uri"
  7. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources