MCP Tools
Plans & Playbooks

produce_plan

Produce (generate) the actual content a plan describes — the MCP equivalent of the Generate button on the plans board.

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.
plan_uuidstringYes—Required. UUID of the Accepted plan to produce (from list_plans / get_plan / create_plan).
redraftbooleanNo—Update-mode plans only: true re-drafts from the current target document, superseding an existing pending, conflict, or no_changes draft (rejected on create-mode plans).
instructionsstringNo—Update-mode plans only: optional one-off revision instructions for this run (does not modify the saved plan prompt; rejected on create-mode plans).
confirm_private_sourcesstringNo—Optional upfront one-time confirmation token for auto-apply update plans; if omitted on a direct-mode plan with private sources, the draft falls back to a pending approval (`private_source_disclosure_required`) and the confirmation challenge runs at `approve_document_update`.

Input Schema

{
  "type": "object",
  "required": [
    "team_id",
    "plan_uuid"
  ],
  "properties": {
    "redraft": {
      "type": "boolean",
      "description": "Update-mode plans only: true re-drafts from the current target document, superseding an existing pending, conflict, or no_changes draft (rejected on create-mode plans)."
    },
    "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."
    },
    "plan_uuid": {
      "type": "string",
      "description": "Required. UUID of the Accepted plan to produce (from list_plans / get_plan / create_plan)."
    },
    "instructions": {
      "type": "string",
      "description": "Update-mode plans only: optional one-off revision instructions for this run (does not modify the saved plan prompt; rejected on create-mode plans)."
    },
    "confirm_private_sources": {
      "type": "string",
      "description": "Optional upfront one-time confirmation token for auto-apply update plans; if omitted on a direct-mode plan with private sources, the draft falls back to a pending approval (`private_source_disclosure_required`) and the confirmation challenge runs at `approve_document_update`."
    }
  }
}

Output Schema

{
  "type": "object",
  "required": [
    "path",
    "stage",
    "message",
    "link_url"
  ],
  "properties": {
    "path": {
      "enum": [
        "blueprint",
        "freeform"
      ],
      "type": "string",
      "description": "Which produce path ran: blueprint (generated from a blueprint) or freeform (no blueprint, including existing-document update drafts). All are async."
    },
    "team": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "description": "Team this action applied to."
    },
    "stage": {
      "type": "string",
      "description": "The plan's stage as of this response: Accepted on both paths. On completion, create-mode plans flip to In_Process; direct auto-applied updates move straight to Complete if the target doc is ready, else In_Process; approval updates (including no_changes and private-source fallbacks) stay Accepted until approve_document_update moves them to Complete (if target doc is ready) or In_Process."
    },
    "message": {
      "type": "string",
      "description": "What happened + what to do next."
    },
    "link_url": {
      "type": "string",
      "format": "uri",
      "description": "Shareable deep-link that opens the plans screen with this plan's detail overlay. Give this to the user."
    },
    "generation_id": {
      "type": "string",
      "description": "Poll get_generation_status with this id."
    },
    "target_content_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Update-mode plans only: UUID of the target document being updated."
    }
  }
}

Instructions

Generates content (or a document update draft when step.document_update.mode === "update") for an Accepted plan (plan_uuid). Confirm Studio Credits first when unprompted (fails 402 if short; Suggested plans must move to Accepted via update_plan first). Async (path: blueprint | freeform): returns generation_id — poll get_generation_status until completed.

Create-mode plans move from Accepted to In_Process on completion. On update-mode plans: creates or replaces the open update draft (redraft: true supersedes an existing pending, conflict, or no_changes draft; optional one-off instructions steer this draft only). Approval mode (including no_changes and direct-mode private-source fallbacks) stays Accepted until approve_document_update moves it straight to Complete if the target doc is ready, else In_Process; direct mode (auto-applied) moves straight to Complete if ready, else In_Process on completion. Present link_url as returned.

Output:

Field Type Description
path string blueprint (plan has a blueprint) or freeform (no blueprint, including update-mode plans)
generation_id string Poll get_generation_status with this until complete
target_content_id string (uuid) Update-mode plans only: UUID of the target document being updated
plan_uuid string (uuid) The plan being produced

Links: present link_url to the user exactly as returned — copy it character for character. Never retype, shorten, or rebuild a link or the IDs inside it.