MCP Control
Каталог · Чтение

Каталог · Товары · Результат операции «соответствие полей»

catalog_products_get_import_mapping_result
Синяя керамическая кружка

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

Получить данные
  1. Вы указываетеОбъект
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Каталог / Товары / Результат операции «соответствие полей»» выполни чтение в текущей компании. Выведи кратко: состояние, результат.
Что искать в ответе
state
Состояние
result
Результат
После обрыва
  1. Вы указываетеПервоначальный ключ
  2. ПомощникПоиск квитанции
  3. Вы получаетеСостояние операции
Запрос в чат
Найди результат «Каталог / Товары / Результат операции «соответствие полей»» по ключу первоначальной попытки. Покажи состояние операции и раздели подтверждённые и пока неизвестные данные.
Порядок проверки
1
Взять исходный ключ
2
Проверить квитанцию
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Каталог / Товары / Результат операции «соответствие полей»» объясни состояние, результат. Отметь отсутствующие значения.
Поля для проверки
state
Состояние
result
Результат
Как работает действие

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

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

Read the exact saved AI mapping result for the original request ID. A processing result never resends the provider request.

Параметры запроса
fileUrl
Existing CSV or JSON object in this company's native Ingridients bucket, as supabase://Ingridients/<companyId>/<path>. обязательно по схеме · string · до символов 1200
itemType
Native product row type to import. обязательно по схеме · string · варианты product, ingrid, modif
model
Optional model configured for this company; omit for the existing aiBridge default. необязательно · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
state
Durable mapping request state; reading never resends the model call. обязательно по схеме · string · варианты not_found, processing, completed
result
Saved candidate mapping, or null while absent or processing. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа catalog_products_get_import_mapping_result
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "fileUrl": {
      "type": "string",
      "minLength": 35,
      "maxLength": 1200,
      "pattern": "^supabase:\\/\\/Ingridients\\/[A-Za-z0-9_-]+\\/(?:[^./][^/]*\\/)*[^./][^/]*\\.(?:csv|json)$",
      "description": "Existing CSV or JSON object in this company's native Ingridients bucket, as supabase://Ingridients/<companyId>/<path>."
    },
    "itemType": {
      "type": "string",
      "enum": [
        "product",
        "ingrid",
        "modif"
      ],
      "description": "Native product row type to import."
    },
    "model": {
      "description": "Optional model configured for this company; omit for the existing aiBridge default.",
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,79}$"
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Stable ID for this exact mapping request; never change it to resend an uncertain provider call."
    }
  },
  "required": [
    "fileUrl",
    "itemType",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "not_found",
        "processing",
        "completed"
      ],
      "description": "Durable mapping request state; reading never resends the model call."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "mapping": {
              "type": "object",
              "properties": {
                "mapping": {
                  "minItems": 1,
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "source": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "description": "Exact source column name."
                      },
                      "target": {
                        "type": "string",
                        "enum": [
                          "name",
                          "short_description",
                          "description",
                          "price",
                          "available",
                          "available_in_app",
                          "unit_of_measurement",
                          "brand",
                          "photos",
                          "category",
                          "category_ingredients",
                          "production_area",
                          "type_tax"
                        ],
                        "description": "Supported native product field."
                      },
                      "transform": {
                        "description": "Native conversion such as number, normalizeUnit or matchDict:<table>.",
                        "type": "string",
                        "maxLength": 100
                      },
                      "lang": {
                        "description": "Language of the imported text.",
                        "type": "string",
                        "enum": [
                          "ru",
                          "en",
                          "es",
                          "uk"
                        ]
                      }
                    },
                    "required": [
                      "source",
                      "target"
                    ],
                    "additionalProperties": false
                  },
                  "description": "Reviewed source-to-native product field mapping."
                },
                "defaultValues": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {},
                  "description": "Reviewed native defaults; identity and company fields are rejected by the backend."
                }
              },
              "required": [
                "mapping",
                "defaultValues"
              ],
              "additionalProperties": false,
              "description": "AI-proposed mapping that must be reviewed and passed to catalog_products_import_preview."
            },
            "rowCount": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 1000,
              "description": "Number of source rows seen by the native sampler."
            },
            "columns": {
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Native source columns available for mapping."
            },
            "model": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "Actual model reported by aiBridge."
            }
          },
          "required": [
            "mapping",
            "rowCount",
            "columns",
            "model"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Saved candidate mapping, or null while absent or processing."
    }
  },
  "required": [
    "state",
    "result"
  ],
  "additionalProperties": false
}