MCP Control
Файлы и медиа · Чтение

Медиа · Просмотр

media_get
Фотокамера и образцы цвета

Попробуйте три запроса

Получить данные
  1. Вы указываетеMediaid
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Медиа / Просмотр» выполни чтение по выбранной записи (mediaId). Выведи кратко: mediaId, entityType.
Что искать в ответе
mediaId
Поле ответа
entityType
Поле ответа
entityId
Объект
Уточнить объект
  1. Вы указываетеMediaid
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Перед чтением «Медиа / Просмотр» сверь mediaId с выбранной мной записью. Если совпадений несколько, покажи различия и дождись выбора.
Параметры примера
mediaId
Из выбранной записи
При совпадениях
Уточнить выбор
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Медиа / Просмотр» объясни mediaId, entityType. Отметь отсутствующие значения.
Поля для проверки
mediaId
Поле ответа
entityType
Поле ответа
entityId
Объект
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании.

Описание разработчика

Get compact metadata and an authenticated download URL for a completed image. Use an identifier returned by media_prepare_upload, media_list_for_entity or the upload endpoint. Does not expose Storage paths, signing tokens or image bytes.

Параметры запроса
mediaId
Server-issued media identifier from this workspace. обязательно по схеме · string
Что вернёт команда
mediaId
Server-generated image identifier. Use this identifier for retrieval; never construct a Storage path. обязательно по схеме · string
entityType
Existing entity type. For a Team avatar use employee and the exact employeeId from employees_search/services_team, then attach the completed image with staff_employee_avatar_set. The server verifies tenant ownership, location access and entity permissions. обязательно по схеме · string · варианты customer, lead, task, order, product, company, employee
entityId
Verified entity identifier linked to this media record. обязательно по схеме · string · до символов 128
mimeType
Actual image MIME type, checked against file signature and decoder; SVG and arbitrary files are not accepted. обязательно по схеме · string · варианты image/jpeg, image/png, image/webp
byteLength
Byte count of the sanitized stored image; it may differ from the uploaded source. обязательно по схеме · integer · максимум 8388608
width
Decoded and orientation-corrected image width in pixels. обязательно по схеме · integer · максимум 8192
height
Decoded and orientation-corrected image height in pixels. обязательно по схеме · integer · максимум 8192
url
Authenticated download endpoint. Access requires the same workspace and current entity permissions; this is not a public bearer URL. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа media_get
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "mediaId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "Server-issued media identifier from this workspace."
    }
  },
  "required": [
    "mediaId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "mediaId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "Server-generated image identifier. Use this identifier for retrieval; never construct a Storage path."
    },
    "entityType": {
      "type": "string",
      "enum": [
        "customer",
        "lead",
        "task",
        "order",
        "product",
        "company",
        "employee"
      ],
      "description": "Existing entity type. For a Team avatar use employee and the exact employeeId from employees_search/services_team, then attach the completed image with staff_employee_avatar_set. The server verifies tenant ownership, location access and entity permissions."
    },
    "entityId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Verified entity identifier linked to this media record."
    },
    "mimeType": {
      "type": "string",
      "enum": [
        "image/jpeg",
        "image/png",
        "image/webp"
      ],
      "description": "Actual image MIME type, checked against file signature and decoder; SVG and arbitrary files are not accepted."
    },
    "byteLength": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 8388608,
      "description": "Byte count of the sanitized stored image; it may differ from the uploaded source."
    },
    "width": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 8192,
      "description": "Decoded and orientation-corrected image width in pixels."
    },
    "height": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 8192,
      "description": "Decoded and orientation-corrected image height in pixels."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Authenticated download endpoint. Access requires the same workspace and current entity permissions; this is not a public bearer URL."
    }
  },
  "required": [
    "mediaId",
    "entityType",
    "entityId",
    "mimeType",
    "byteLength",
    "width",
    "height",
    "url"
  ],
  "additionalProperties": false
}