run_campaign_action
Run a lifecycle action on a review-invite campaign. Every action requires ReviewGen in the agency's plan. Actions: "publish" launches the campaign — if autoSend is on this starts sending real emails/SMS to recipients immediately, and it is refused with an explanatory error until the campaign has what it sends (at least one review site; for EMAIL a From address, a subject and a subject on every enabled follow-up; for SMS a text message and the review site it links to; a schedule still in the future) and, per channel, a verified sending domain for the client (EMAIL) and a carrier-verified number for the location (SMS); "stop" halts an active campaign; "clone" duplicates it as a new draft (returns the clone); "autoSend" turns automatic sending on/off for new recipients (pass `on`); "archive" archives it (only allowed once stopped — a still-active campaign is silently skipped, check the response); "unarchive" restores an archived campaign. Identify the campaign by its id.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "run_campaign_action",
"arguments": {
"campaignId": "string",
"op": "publish"
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
}
}La forma de la respuesta se muestra a modo ilustrativo — el contenido real depende de la herramienta y de tus datos.