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

Медиа · Список · Для · Объекты

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

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

Получить данные
  1. Вы указываетеОбъект
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Медиа / Список / Для / Объекты» выполни чтение по выбранной записи (объект). Выведи кратко: список позиций, nextId.
Что искать в ответе
items
Список позиций
nextId
Поле ответа
Задать параметры
  1. Вы указываетеОбъект
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Медиа / Список / Для / Объекты» на учебном примере с entityType = customer. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
entityType
customer
entityId
DEMO-101
limit
3
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Медиа / Список / Для / Объекты» объясни список позиций, nextId. Отметь отсутствующие значения.
Поля для проверки
items
Список позиций
nextId
Поле ответа
Как работает действие

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

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

List completed images uploaded through MCP for one existing accessible entity. Use canonical IDs from its search/get action. This list excludes revoked or incomplete uploads; older native image fields remain available through the entity read actions. Does not modify or attach photos.

Параметры запроса
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
Canonical entity ID returned by the corresponding business action. обязательно по схеме · string · до символов 128
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
afterId
nextId returned by the previous page for this same entity. необязательно · string
Что вернёт команда
items
Записи, которые вернул этот запрос. обязательно по схеме · array
nextId
Pass as afterId for another page, or null when complete. обязательно по схеме · string / null
Поля и технические схемы
Входные поля и поля ответа media_list_for_entity
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "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": "Canonical entity ID returned by the corresponding business action."
    },
    "limit": {
      "default": 20,
      "description": "Maximum image metadata records per page.",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "afterId": {
      "description": "nextId returned by the previous page for this same entity.",
      "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)$"
    }
  },
  "required": [
    "entityType",
    "entityId",
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "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
      },
      "description": "Completed MCP uploads for the selected entity."
    },
    "nextId": {
      "anyOf": [
        {
          "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)$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Pass as afterId for another page, or null when complete."
    }
  },
  "required": [
    "items",
    "nextId"
  ],
  "additionalProperties": false
}