MCP Control
Задачи · Изменение

Работа · Задачи · Возобновление · Операция

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

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

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

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.

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

Continue an interrupted native task lifecycle operation using its exact original action, arguments and requestId. Revalidates current protected account/client permissions, company/resource references and the original revision. Reuses the atomic task receipt and repairs only its matching registry claim after a proven commit. Never replaces a conflicting revision, repeats an existing status/history event or overwrites a later native edit.

Параметры запроса
original
Original mutation and its unchanged arguments. Lookup never executes or unlocks that mutation. обязательно по схеме
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
result
Immutable original lifecycle result; read work_task_get_lifecycle for current task state. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа work_task_resume_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."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Unique recovery attempt identifier. The nested original requestId remains the deduplication key for the task mutation."
    }
  },
  "required": [
    "original",
    "requestId"
  ],
  "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": {
    "result": {
      "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,
      "description": "Immutable original lifecycle result; read work_task_get_lifecycle for current task state."
    }
  },
  "required": [
    "result"
  ],
  "additionalProperties": false
}