Skip to main content
Glama

Import media from a URL

import_media

Fetch a file the client cannot upload itself and store it as an account upload. When the user attaches a picture, clip or sound in ChatGPT, pass it as file; otherwise pass url. The result's reference goes into any generate tool. A file with no URL this server can reach (a claude.ai attachment) needs request_upload_link instead. Only these hosts are fetched: files.oaiusercontent.com.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
fileNo
filenameNo
mime_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
uploadYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / file / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "download_url": {
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "file_id": {
      -        "maxLength": 200,
      -        "type": "string"
      -      },
      -      "file_name": {
      -        "maxLength": 220,
      -        "type": "string"
      -      },
      -      "mime_type": {
      -        "maxLength": 120,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "download_url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "maxLength": 2000,
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "download_url": {
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "file_id": {
      +        "maxLength": 200,
      +        "type": "string"
      +      },
      +      "file_name": {
      +        "maxLength": 220,
      +        "type": "string"
      +      },
      +      "mime_type": {
      +        "maxLength": 120,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "download_url",
      +      "file_id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "maxLength": 2000,
      +    "type": "string"
      +  }
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / upload / properties / thumbnail_url
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / upload / required
      Previous value: -[
      -  "upload_id",
      -  "filename",
      -  "kind",
      -  "mime_type",
      -  "bytes",
      -  "status",
      -  "url",
      -  "reference"
      -]New value: +[
      +  "upload_id",
      +  "filename",
      +  "kind",
      +  "mime_type",
      +  "bytes",
      +  "status",
      +  "url",
      +  "thumbnail_url",
      +  "reference"
      +]
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources