MCP Tools
Plans & Playbooks

approve_document_update

Approve and apply a pending document update proposal (optimistically locked with `expected_base_hash`) or confirm `no_changes` on a plan update.

Parameters

NameTypeRequiredDefaultDescription
team_idintegerYes—Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions.
update_idstring (uuid)Yes—Document update proposal UUID to approve.
expected_base_hashstring | nullYes—64-character SHA-256 `base_hash` returned by `get_document_update` or `list_document_updates` (pass `null` only when `base_hash` is `null`).
edited_bodystringNo—Optional edited markdown body replacing `proposed_body` before applying (plan updates only).
confirm_private_sourcesstringNo—Pass only after the user agrees. One-time token from a prior `private_sources_confirmation_required` refusal; repeat the call with that token here only once the user confirms sharing private sources with the target's audience.

Input Schema

{
  "type": "object",
  "required": [
    "team_id",
    "update_id",
    "expected_base_hash"
  ],
  "properties": {
    "team_id": {
      "type": "integer",
      "minimum": 1,
      "description": "Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions."
    },
    "update_id": {
      "type": "string",
      "format": "uuid",
      "description": "Document update proposal UUID to approve."
    },
    "edited_body": {
      "type": "string",
      "description": "Optional edited markdown body replacing `proposed_body` before applying (plan updates only)."
    },
    "expected_base_hash": {
      "type": [
        "string",
        "null"
      ],
      "description": "64-character SHA-256 `base_hash` returned by `get_document_update` or `list_document_updates` (pass `null` only when `base_hash` is `null`)."
    },
    "confirm_private_sources": {
      "type": "string",
      "description": "Pass only after the user agrees. One-time token from a prior `private_sources_confirmation_required` refusal; repeat the call with that token here only once the user confirms sharing private sources with the target's audience."
    }
  }
}

Output Schema

{
  "type": "object",
  "required": [
    "source_kind",
    "update_id",
    "state",
    "target_content_id",
    "content_id",
    "link_url"
  ],
  "properties": {
    "state": {
      "enum": [
        "applied"
      ],
      "type": "string"
    },
    "link_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "update_id": {
      "type": "string",
      "format": "uuid"
    },
    "content_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "plan_stage": {
      "type": "string"
    },
    "source_kind": {
      "enum": [
        "plan",
        "workflow"
      ],
      "type": "string"
    },
    "target_content_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    }
  }
}

Instructions

Approves a pending document update (or confirms a no_changes plan update as done) by update_id, applying the reviewed draft to the target document (interactive conversations only; background workflow or playbook action runs are refused). Always call get_document_update first, inspect the diff, and confirm with the user unless they asked you to apply it.

Output: source_kind, update_id, state, target_content_id (existing target document UUID, or null when creating a new workflow document), content_id (applied or newly created document UUID), link_url, and plan_stage (when applicable).

When to use

Use after reviewing a proposal with get_document_update to apply the change (or confirm no_changes). Interactive sessions only.