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

Файлы · Просмотр

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

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

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

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

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

Read compact completed private file metadata and an authenticated attachment URL. file:<UUID> is an internal reference, never proof of permission. No raw bytes, storage paths, signing tokens or public URLs are returned.

Параметры запроса
fileId
Server-issued file UUID from files_prepare_upload/list/get, never an image UUID or storage path. обязательно по схеме · string
Что вернёт команда
fileId
Server-issued private file UUID, separate from managed image IDs. обязательно по схеме · string
referenceId
Internal attachment reference file:<fileId>; never proof of access. обязательно по схеме · string
entityType
Existing entity type. Current company, location and entity permissions are checked before accepting or reading a private file. обязательно по схеме · string · варианты customer, lead, task, order, product, company, employee
entityId
Canonical existing entity identifier, resolved through current company and location permissions. обязательно по схеме · string · до символов 128
fileName
Safe download filename, without paths or control characters, with the matching extension. обязательно по схеме · string · до символов 160
mimeType
Actual supported document or MP4/WebM video format. Video playback depends on browser codec support. HTML, SVG, scripts, executables, encrypted archives and macro-enabled Office files are not accepted. обязательно по схеме · string · варианты video/mp4, video/webm, application/pdf, text/plain, text/csv, application/json, application/zip, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.presentationml.presentation
byteLength
Exact source/stored file byte length, at most20MiB. обязательно по схеме · integer · максимум 20971520
url
Current authenticated attachment download URL. No public, presigned or bearer URL is returned. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа files_get
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "fileId": {
      "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 file UUID from files_prepare_upload/list/get, never an image UUID or storage path."
    }
  },
  "required": [
    "fileId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "fileId": {
      "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 private file UUID, separate from managed image IDs."
    },
    "referenceId": {
      "type": "string",
      "pattern": "^file:[0-9a-f-]{36}$",
      "description": "Internal attachment reference file:<fileId>; never proof of access."
    },
    "entityType": {
      "type": "string",
      "enum": [
        "customer",
        "lead",
        "task",
        "order",
        "product",
        "company",
        "employee"
      ],
      "description": "Existing entity type. Current company, location and entity permissions are checked before accepting or reading a private file."
    },
    "entityId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical existing entity identifier, resolved through current company and location permissions."
    },
    "fileName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "description": "Safe download filename, without paths or control characters, with the matching extension."
    },
    "mimeType": {
      "type": "string",
      "enum": [
        "video/mp4",
        "video/webm",
        "application/pdf",
        "text/plain",
        "text/csv",
        "application/json",
        "application/zip",
        "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
        "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
        "application/vnd.openxmlformats-officedocument.presentationml.presentation"
      ],
      "description": "Actual supported document or MP4/WebM video format. Video playback depends on browser codec support. HTML, SVG, scripts, executables, encrypted archives and macro-enabled Office files are not accepted."
    },
    "byteLength": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 20971520,
      "description": "Exact source/stored file byte length, at most20MiB."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Current authenticated attachment download URL. No public, presigned or bearer URL is returned."
    }
  },
  "required": [
    "fileId",
    "referenceId",
    "entityType",
    "entityId",
    "fileName",
    "mimeType",
    "byteLength",
    "url"
  ],
  "additionalProperties": false
}