add_playbook_step
Adds one step (content, checklist, or action) to a RUNNING playbook cycle (run_id), leaving the template unchanged. Positions after after_plan_uuid or at end; builds_on accepts earlier step UUIDs. owner_name applies to content/checklist only (use exact spelling from list_playbook_owner_names); use_cycle_source and draft_lead_days (0–365; update_plan turns auto-gen off) apply to content only; content steps start with empty targeting_dimension_ids/context_collection_ids unless passed (no cycle inheritance). Refusals change nothing. Present link_url as returned.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"team_id": "<team_id>",
"run_id": "<run_id>",
"title": "<title>"
},
"name": "add_playbook_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | content (default), checklist or action. An action step needs action: { instruction } and an owner_user_id (the owner's in-app agent does it with their connected apps when they press Run in Marcora, not over MCP). | |
| title | Yes | The step's title. | |
| action | No | Required for kind "action": { instruction }. | |
| prompt | No | Content steps: the generation prompt. {Variables} are filled from the running playbook's own values. | |
| run_id | Yes | The running playbook to add the step to (run_id from list_playbook_cycles or instantiate_playbook). | |
| team_id | Yes | Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions. | |
| due_date | No | YYYY-MM-DD deadline the step is due. | |
| due_time | No | Optional time of day it is due, "HH:MM" 24-hour, no time zone. Needs due_date. | |
| reviewer | No | Deprecated and ignored (not written or returned by MCP; existing values are kept). | |
| builds_on | No | plan_uuids of EARLIER steps of this running playbook whose finished content this step draws on. A later step is refused. | |
| owner_name | No | A typed owner (an agent, or anyone who is not a team member) instead of owner_user_id. Not for an action step. See list_playbook_owner_names. | |
| description | No | What the step is for. | |
| goes_out_date | No | Content steps: YYYY-MM-DD the finished content goes out. | |
| goes_out_time | No | Content steps: optional time of day it goes out, "HH:MM". Needs goes_out_date. | |
| owner_user_id | No | Team member who owns the step. Defaults to you. Do not send together with owner_name. | |
| blueprint_uuid | No | Content steps: blueprint to write from (from list_blueprints). | |
| after_plan_uuid | No | Place the step right after this step (plan_uuid from get_playbook_cycle). Omit to add it at the end. | |
| draft_lead_days | No | Content steps only: whole calendar days (0-365) before due_date when scheduled auto-generate starts (rejects non-integers and null; defaults to 3 when do_on_date is newly enabled, 0 on existing schedules). Note: later sending draft_lead_days (or schedule_time_zone, title, description, prompt, blueprint_id, project_id, reference_document_ids (even []), builds_on_plan_ids when any link/doc remains, context_collection_ids, targeting_dimension_ids, or generation_settings) via update_plan turns an enabled auto-generate schedule off; MCP cannot turn auto-generate on (stored lead only; when the owner turns it back on in the app, an unset lead resets to 3, so pick the intended lead there). | |
| use_cycle_source | No | Content steps only: true so this step's generation also sees a live snapshot of the cycle (topic/details, variables, anchor, and team-visible steps' title, owner, dates, status); private steps are omitted and the generated document footer states how many were left out, not other steps' text. | |
| context_collection_ids | No | Content steps only (ignored on checklist/action steps): context collection IDs (list_context_collections) to attach to this step. Omit, [], or null starts empty (nothing inherits from the cycle); unavailable/unreadable IDs are refused. | |
| targeting_dimension_ids | No | Content steps only (ignored on checklist/action steps): targeting dimension option IDs (list_targeting_dimensions) to attach to this step. Omit, [], or null starts empty (nothing inherits from the cycle); unavailable IDs are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | The step's kind, draft_lead_days (content steps: 0-365 whole calendar days), schedule readback (see schedule.outcome: waiting_content retries on its own once the source draft is ready; overdue or waiting needs an explicit generate; invalidated means a teammate's edit or revoked consent turned automatic start off), owner_name, times of day and other step settings. | |
| team | No | Team this action applied to. | |
| stage | No | ||
| title | No | ||
| run_id | No | ||
| due_date | No | ||
| link_url | No | ||
| plan_uuid | No | The new step's id. | |
| cycle_link_url | No | Link to the running playbook. | |
| context_collections | No | Context collection IDs attached to this step (content steps only). | |
| generation_settings | No | Generation source settings (e.g. { use_cycle_source: true }), or null. use_cycle_source: true gives generation a live snapshot of team-visible cycle steps only (private steps omitted with a footer count). | |
| targeting_dimensions | No | Targeting dimension option IDs attached to this step (content steps only). |