MCP Control
Печать · Чтение

Печать · Просмотр · Принтеры · Статусы

printing_get_printer_status
Папки документов

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

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

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

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

Read the existing saved contact time and polling status of one company printer. Use printerId from printing_list_printers. Distinguishes disabled, stale, busy, paper/cover errors and a recently observed online state. This is read-only: no new printer responses are saved, no print is queued, and no physical printing is inferred. Requires all-location access.

Параметры запроса
printerId
Canonical printer identifier returned by printing_list_printers; use an exact ID, not a display name. обязательно по схеме · string · до символов 128
Что вернёт команда
printerId
Canonical printer identifier from printing_list_printers. обязательно по схеме · string
enabled
Whether the saved printer configuration allows printing. обязательно по схеме · boolean
lastSeenAt
Last stored printer contact time in UTC, or null when absent or invalid. обязательно по схеме · string / null
secondsSinceLastContact
Elapsed seconds according to the server clock; null for missing or future timestamps. обязательно по схеме · integer / null
recentlySeen
Whether a stored printer contact is at most five minutes old. This does not confirm a particular print job. обязательно по схеме · boolean
statusCode
Numeric code from the existing printer polling status. Raw status text, credentials and configuration URLs are omitted. обязательно по схеме · string / null
state
Interpretation of saved enabled, contact time and polling status; no new printer request is made. обязательно по схеме · string · варианты disabled, unknown, stale, online, attention, busy
message
Russian explanation of the observed condition. It is not a print-success confirmation. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа printing_get_printer_status
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "printerId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical printer identifier returned by printing_list_printers; use an exact ID, not a display name."
    }
  },
  "required": [
    "printerId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "printerId": {
      "type": "string",
      "description": "Canonical printer identifier from printing_list_printers."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the saved printer configuration allows printing."
    },
    "lastSeenAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Last stored printer contact time in UTC, or null when absent or invalid."
    },
    "secondsSinceLastContact": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "Elapsed seconds according to the server clock; null for missing or future timestamps."
    },
    "recentlySeen": {
      "type": "boolean",
      "description": "Whether a stored printer contact is at most five minutes old. This does not confirm a particular print job."
    },
    "statusCode": {
      "description": "Numeric code from the existing printer polling status. Raw status text, credentials and configuration URLs are omitted.",
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "disabled",
        "unknown",
        "stale",
        "online",
        "attention",
        "busy"
      ],
      "description": "Interpretation of saved enabled, contact time and polling status; no new printer request is made."
    },
    "message": {
      "type": "string",
      "description": "Russian explanation of the observed condition. It is not a print-success confirmation."
    }
  },
  "required": [
    "printerId",
    "enabled",
    "lastSeenAt",
    "secondsSinceLastContact",
    "recentlySeen",
    "statusCode",
    "state",
    "message"
  ],
  "additionalProperties": false
}