Skip to content

AI Craft & Content

Draft messages with the workspace playbook and voice, inspect how a draft was built, and manage content posts.

Every message CampaignStack writes for a lead is built from the same pieces: the company context, the workspace playbook, the campaign’s guidance, the node’s or agent’s instructions, the sender’s voice and the lead’s own profile. These tools draft with those pieces and show you which piece produced which sentence.

  • craft_message drafts one message (first touch, connection note, comment, reply to a comment, follow-up or meeting follow-up) for LinkedIn or email. It never sends. Read the draft back to the person and send it with an outreach or inbox tool once they approve.
  • get_craft_config_tree returns everything the prompts are built from in one read, with warnings that name the field to fix, such as the same sentence set at two levels.
  • preview_craft_prompt renders the exact prompt a workflow node would send for one lead, without calling the model and without cost.
  • explain_draft takes a finished draft and attributes each sentence to the setting that produced it, so you know what to change when a draft reads wrong.

The content tools manage LinkedIn posts: get_content reads posts and the calendar, edit_content creates, updates and schedules them, and delete_content removes a draft or failed post. Nothing is published by these tools directly; a scheduled post goes out from the app’s publishing queue.

These parameters mean the same thing on every tool below that takes them.

  • workspaceId: Workspace ID. Omit it when this connection reaches one workspace: a workspace key (cs_) is bound to its own, and a user key (csu_) or connected app whose person belongs to exactly one workspace defaults to that one. Required only when the person belongs to several; the error then lists them, and campaignstack_whoami reports them too.

Full name: campaignstack_explain_draft

workflows:read Read-only

Why a draft says what it says: each sentence attributed to the piece of configuration that produced it (the offer context, a playbook section, the campaign guidance, an agent’s script, the outreach intent, the voice profile, a node’s instructions, an agent memory, the contact details, the calendar availability, the conversation so far, the product’s built-in rules, the lead’s own facts), plus the tool and field that changes each one. Works on in-app and MCP-crafted drafts alike. Every citation is re-checked against the prompt section it names, so an unverifiable one comes back as unattributed rather than as a plausible guess. Call this when a draft reads wrong and you need to know WHICH setting to edit; campaignstack_preview_craft_prompt shows the same prompt for a draft that has not been written yet. Pass include [“attempts”] to see whether a draft held for review was rewritten on each attempt and why each one was rejected. Charges mcp_craft credits per call; campaignstack_estimate_cost gives the number before you commit. One model call over a stored draft and its prompt; writes nothing.

NameTypeRequiredDefaultDescription
craftAuditLogIdstringNo—A craft audit log row id, usually copied from an internal audit export or previous explain-draft result.
entryIdstringNo—A current review entry id from campaignstack_get_reviews. Resolves to the draft’s recorded craft session. Use craftAuditLogId for historical drafts.
includestring[]No—Extra sections. “attempts”: every draft the review loop wrote for this message, in order, with a text hash, word count and each check’s verdict and objection.
workspaceIdstringNo—See common parameters.

Full name: campaignstack_get_content

content:read Read-only

Read one or many content records in a stable items[] envelope. Includes can add bounded calendar projection, suggestions, media/full records, and analytics; include.limit caps each include. Results are one page. When pagination reports more, say so rather than presenting the page as the whole set, and page through before counting anything.

NameTypeRequiredDefaultDescription
workspaceIdstringNo—See common parameters.
idsstring[]No—
filtersobjectNo—
filters.statusdraft | pending_approval | scheduled | publishing | published | failed | archivedNo—
filters.platformlinkedinNo—
filters.tagsstring[]No—
includeobjectNo{}
include.calendarobjectNo—
include.suggestionsbooleanNofalse
include.mediabooleanNofalseFull single-post reads already include media; list rows remain compact.
include.analyticsobjectNo—
include.limitintegerNo10(min: 1, max: 50)
limitintegerNo20(min: 1, max: 100)
cursorstringNo—

Full name: campaignstack_get_craft_config_tree

content:read Read-only

Everything a craft prompt is built from, in one read: the workspace’s five playbook sections with their caps, offerContext, capabilities and outreach intents; every campaign’s guidance, offer addendum and intents; every workflow’s craft nodes with the text a human wrote into them; every signal agent’s script; and one voice profile summary per person and language. It also returns warnings: tone language in an agent script, a section written as an explanation of itself, the same sentence sitting at two levels, a campaign goal promising something the offer never states, a greeting that is really a whole message, a voice built on almost no real writing. Each warning names the tool and field that fixes it. Call this before editing craft configuration, or when the user asks to change how CampaignStack writes messages. It does not show one node’s actual rendered prompt: campaignstack_preview_craft_prompt does that for a specific lead. Exemplars and message bodies are never returned.

NameTypeRequiredDefaultDescription
workspaceIdstringNo—See common parameters.
includestring[]No—Subtrees to return. Default: all five.
campaignIdstringNo—Narrow campaigns and their workflows to this one campaign.
resolveForWorkflowIdstringNo—Also return what THIS workflow resolves to: which intent level wins, which sections its scope is sent, and the campaign guidance and offer addendum it carries.
resolveForSignalAgentIdstringNo—Same, for a signal agent. An agent resolves workflow then workspace and never sees a campaign’s guidance or intents.

Full name: campaignstack_preview_craft_prompt

content:read Read-only

Render the exact prompt a craft node would send for one lead, without sending it. Call this when the user asks to see what a draft would look like, or to debug why a node’s wording keeps going wrong. Runs the real craft path and stops immediately before the model call, so what comes back is the same bytes the model would read. index lists the named blocks in the system prompt with their character offsets and sizes (COMPANY CONTEXT, WHAT WE WANT, the playbook sections, RED LINES, the voice), which is how you find out WHICH piece of configuration produces a phrase you do not want. Writes no audit row, records no AI usage, assigns no voice experiment arm, fetches no web context, and costs nothing. Pair it with campaignstack_get_craft_config_tree, which shows where each block comes from.

NameTypeRequiredDefaultDescription
workflowIdstringYes—The workflow the node belongs to. (min length: 1)
nodeIdstringYes—A craft node: ai:craft_note, ai:craft_message, ai:craft_comment, ai:reply_conversation, ai:craft_email, or a send node in its AI mode. (min length: 1)
leadIdstringYes—The lead to render the prompt for. Different leads produce different prompts. (min length: 1)
leadSourceglobal | privateNo—Optional. Leave it out: the server reads it from the leadId and refuses a value that disagrees.
includestring[]No—What to return. Default: index and user. The system prompt runs to thousands of characters, so ask for it when you are going to read it.
workspaceIdstringNo—See common parameters.

Full name: campaignstack_craft_message

workflows:write

Draft one outbound message without sending anything. Select channel linkedin/email and kind first_touch, connection_note, comment, comment_reply, followup, or meeting_followup. Returns sent:false; callers must read the draft back and use a separate send/action tool only after explicit approval. It never books a meeting for you: when a follow-up finds the lead accepted a time offered earlier, schedulingAcceptance names it (booked:false) for a person to book.

NameTypeRequiredDefaultDescription
workspaceIdstringNo—See common parameters.
channellinkedin | emailYes—Draft channel. LinkedIn drafts do not send; email drafts do not send.
kindfirst_touch | connection_note | comment | comment_reply | followup | meeting_followupYes—
leadIdstringNo—
campaignIdstringNo—
workflowIdstringNo—
accountIdstringNo—LinkedIn account that will send the draft: names the speaker and picks the voice on every LinkedIn kind. For a LinkedIn follow-up it also reads the thread, and defaults to the workspace’s only LinkedIn account ready to use; with several, the error lists them so you can ask the person.
meetingIdstringNo—Required for kind=meeting_followup.
meetingKindreschedule | no_show | cancelledNo—
newStartAtstringNo—
newEndAtstringNo—
postUrlstringNo—For first_touch, pair with postContent for a post authored by the lead. Required for comment drafts: the target LinkedIn post URL containing its activity id, or its urn:li:activity URN. Posts older than five days are skipped before crafting.
postContentstringNo—For first_touch, supply the lead-authored post text with postUrl so the opener can cite it and review retains the evidence.
postDatenumberNo—Post publication time in Unix milliseconds, when known.
commentTextstringNo—
conversationMessagesobject[]No—
instructionsstringNo—(max length: 4000)
templatestringNo—(max length: 4000)

Full name: campaignstack_delete_content

content:write Destructive Needs confirmation

Permanently delete draft or failed content. Requires confirmed:true. This permanently deletes a root record. Before calling it, name exactly what will be deleted, explain that it cannot be undone, and wait for an explicit yes.

NameTypeRequiredDefaultDescription
workspaceIdstringNo—See common parameters.
contentIdsstring[]Yes—
confirmedbooleanYes—This permanently deletes a root record. Before calling it, name exactly what will be deleted, explain that it cannot be undone, and wait for an explicit yes.

Full name: campaignstack_edit_content

content:write Acts outside CampaignStack

Create, update, duplicate (copyFromId), or request legal desired-state transitions for content. generator.type=lead_magnet drafts a post from a lead-magnet candidate; generator.type=search_console_demand drafts a post from Search Console demand. Generators create draft posts only. Create accepts media; update accepts patch.media and patch.mediaMode (replace by default, append to add, [] to remove). Images use public URL or raw base64 with mimeType and optional alt: JPEG, PNG, GIF or WebP, 5 MB cap, blog upload URL safety checks. Existing mediaIds remain supported; postType is inferred when uploading media. postAs publishes a post as a company page the author account manages (patch.postAs: null returns it to the person); a page that account cannot post as is refused with the postable pages listed. Scheduling/approval/reject/retry transitions are validated and return per-operation results; nothing is published by this tool.

NameTypeRequiredDefaultDescription
workspaceIdstringNo—See common parameters.
operationsoperation[]Yes—One or more operations, see below.
NameTypeRequiredDefaultDescription
clientOperationIdstringNo—
kindstringNo"post"
mediaarrayNo—Images as {url, alt?} or {base64, mimeType, alt?}; raw base64, 5 MB per image. Upload errors are returned per operation.
generatorobject | objectNo—
authorAccountIdstringNo—Author account (LinkedIn account ID). Omit it to default to the workspace’s only LinkedIn account that is ready; with several, the error lists them (id and name) so you can ask the person which one.
postAsobjectNo—Publish as this company page instead of the author’s profile. The author account must be able to post as it.
postAs.organizationIdstringYes—Numeric LinkedIn id of a company page the author account can post as (campaignstack_get_accounts with include.adminPages lists them). (min length: 1)
platformlinkedinNo"linkedin"
bodystringNo—(min length: 1)
mediaIdsstring[]No[]
tagsstring[]No—
postTypetext | image | video | documentNo—
NameTypeRequiredDefaultDescription
clientOperationIdstringNo—
contentIdstringYes—(min length: 1)
patchobjectYes—
patch.postAsunknown | nullNo—Publish as this company page. null returns the post to the person.
patch.mediaunknownNo—Images as {url, alt?} or {base64, mimeType, alt?}; raw base64, 5 MB per image. Upload errors are returned per operation.
patch.mediaModeappend | replaceNo—
patch.bodystringNo—(min length: 1)
patch.mediaIdsstring[]No—
patch.tagsstring[]No—
patch.postTypetext | image | video | documentNo—
NameTypeRequiredDefaultDescription
clientOperationIdstringNo—
copyFromIdstringYes—(min length: 1)
NameTypeRequiredDefaultDescription
clientOperationIdstringNo—
contentIdstringYes—(min length: 1)
desiredStatepending_approval | scheduled | approved | rejected | draft | retry_draftYes—
scheduledAtintegerNo—
autoSchedulebooleanNo—
reasonstringNo—(min length: 1)