MCP Control
Задачи · Чтение

Работа · Задачи · Просмотр · Операция

work_task_get_operation
Карточки процесса, соединённые нитями

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

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

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

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

Recover an immutable lifecycle result after a lost response using the exact original action and arguments. Requires the same account, client and permission fingerprint plus current task access. Never repeats or unlocks a mutation; not_recorded is only a read observation.

Параметры запроса
original
Original mutation and its unchanged arguments. Lookup never executes or unlocks that mutation. обязательно по схеме
Что вернёт команда
status
Whether an immutable transaction receipt exists. not_recorded does not prove a pending operation cannot commit. обязательно по схеме · string · варианты committed, not_recorded
result
Historical committed result, not a reread of current task state. Null when no receipt is recorded. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа work_task_get_operation
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "original": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "work_task_assign",
              "description": "Original action name."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "taskId": {
                  "$ref": "#/$defs/_mcp0"
                },
                "expectedRevision": {
                  "$ref": "#/$defs/_mcp1"
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp2"
                },
                "assigneeIds": {
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
                    "description": "Existing native users document identifier."
                  },
                  "description": "Complete replacement of document.users, without duplicates. An empty list explicitly unassigns everyone."
                }
              },
              "required": [
                "taskId",
                "expectedRevision",
                "requestId",
                "assigneeIds"
              ],
              "additionalProperties": false,
              "description": "Exact original parsed arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "work_task_set_status",
              "description": "Original action name."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "taskId": {
                  "$ref": "#/$defs/_mcp0"
                },
                "expectedRevision": {
                  "$ref": "#/$defs/_mcp1"
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp2"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "new",
                    "pending",
                    "in_progress",
                    "paused",
                    "postponed",
                    "done",
                    "cancel"
                  ],
                  "description": "Exact status supported by the native task editor. Adds a native status event; selecting the current status is a no-op."
                }
              },
              "required": [
                "taskId",
                "expectedRevision",
                "requestId",
                "status"
              ],
              "additionalProperties": false,
              "description": "Exact original parsed arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "work_task_complete",
              "description": "Original action name."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "taskId": {
                  "$ref": "#/$defs/_mcp0"
                },
                "expectedRevision": {
                  "$ref": "#/$defs/_mcp1"
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp2"
                }
              },
              "required": [
                "taskId",
                "expectedRevision",
                "requestId"
              ],
              "additionalProperties": false,
              "description": "Exact original parsed arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "work_task_reschedule",
              "description": "Original action name."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "taskId": {
                  "$ref": "#/$defs/_mcp0"
                },
                "expectedRevision": {
                  "$ref": "#/$defs/_mcp1"
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp2"
                },
                "scheduledAt": {
                  "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                  "description": "New document.scegul start time as ISO 8601 with explicit timezone."
                },
                "finishAt": {
                  "description": "Optional new scheduled end in document.finish. Omission preserves the existing end; this is not a completion timestamp.",
                  "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                }
              },
              "required": [
                "taskId",
                "expectedRevision",
                "requestId",
                "scheduledAt"
              ],
              "additionalProperties": false,
              "description": "Exact original parsed arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "work_task_set_comment",
              "description": "Original action name."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "taskId": {
                  "$ref": "#/$defs/_mcp0"
                },
                "expectedRevision": {
                  "$ref": "#/$defs/_mcp1"
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp2"
                },
                "comment": {
                  "type": "string",
                  "maxLength": 12000,
                  "description": "Complete replacement of document.comment. An empty string clears it. No separate note or history entry is invented."
                }
              },
              "required": [
                "taskId",
                "expectedRevision",
                "requestId",
                "comment"
              ],
              "additionalProperties": false,
              "description": "Exact original parsed arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "work_task_set_step_progress",
              "description": "Original action name."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "taskId": {
                  "$ref": "#/$defs/_mcp0"
                },
                "expectedRevision": {
                  "$ref": "#/$defs/_mcp1"
                },
                "requestId": {
                  "$ref": "#/$defs/_mcp2"
                },
                "stepId": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
                  "description": "Existing unique native step identifier returned by work_task_get_lifecycle with checklist requested. May select a nested step."
                },
                "completed": {
                  "type": "boolean",
                  "description": "New native step.progress value. Changes only this step; parents, children and task status are not completed automatically."
                }
              },
              "required": [
                "taskId",
                "expectedRevision",
                "requestId",
                "stepId",
                "completed"
              ],
              "additionalProperties": false,
              "description": "Exact original parsed arguments."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Original mutation and its unchanged arguments. Lookup never executes or unlocks that mutation."
    }
  },
  "required": [
    "original"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Existing Companies/{connected company}/Task document identifier."
    },
    "_mcp1": {
      "type": "string",
      "pattern": "^\\d{1,12}:\\d{1,9}$",
      "description": "Exact current Firestore revision from work_task_edit_context or work_task_get_lifecycle. Read again after each committed change."
    },
    "_mcp2": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable unique request identifier. Preserve every argument when retrying this operation."
    }
  }
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "committed",
        "not_recorded"
      ],
      "description": "Whether an immutable transaction receipt exists. not_recorded does not prove a pending operation cannot commit."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "taskId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
              "description": "Canonical task affected by this recorded operation."
            },
            "operation": {
              "type": "string",
              "enum": [
                "work_task_assign",
                "work_task_set_status",
                "work_task_complete",
                "work_task_reschedule",
                "work_task_set_comment",
                "work_task_set_step_progress"
              ],
              "description": "Original task lifecycle action name."
            },
            "appliedFromRevision": {
              "type": "string",
              "pattern": "^\\d{1,12}:\\d{1,9}$",
              "description": "Historical revision checked before this operation. This is not the resulting or current task revision."
            },
            "changed": {
              "type": "boolean",
              "description": "Whether this operation changed native task fields."
            },
            "updatedFields": {
              "maxItems": 3,
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "users",
                  "status",
                  "scegul",
                  "finish",
                  "history",
                  "comment",
                  "progress"
                ],
                "description": "Native field within document."
              },
              "description": "Exact native fields changed by this operation; empty for a no-op."
            },
            "event": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "Date": {
                      "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                      "description": "Server event timestamp in the native Date field, serialized as ISO 8601."
                    },
                    "Name": {
                      "type": "string",
                      "maxLength": 96,
                      "description": "Exact native event name."
                    },
                    "Comment": {
                      "type": "string",
                      "maxLength": 180,
                      "description": "Native event attribution using the server-verified employee identifier."
                    }
                  },
                  "required": [
                    "Date",
                    "Name",
                    "Comment"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ],
              "description": "Native event appended by this operation, or null for operations without an event."
            },
            "sideEffects": {
              "type": "string",
              "const": "task_fields_only",
              "description": "Only task fields were persisted. No webhook, calendar synchronization, notification or external action was invoked."
            }
          },
          "required": [
            "taskId",
            "operation",
            "appliedFromRevision",
            "changed",
            "updatedFields",
            "event",
            "sideEffects"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Historical committed result, not a reread of current task state. Null when no receipt is recorded."
    }
  },
  "required": [
    "status",
    "result"
  ],
  "additionalProperties": false
}