List campaigns

Campaign flows from Messaging > Flow Builder, with status and the segments they include.

MCP tool postscript_read → list_campaigns

read

Lists the one-time campaign flows in Flow Builder, as the list shows them: name, status and the segments in Include and Exclude.. Use campaign_id with schedule_campaign, send_preview and stop_campaign.

Parameters

Parameters: list_campaigns
NameTypeDescription
search string string Only campaigns whose name contains this text.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "postscript_read",
    "arguments": {
      "operation": "list_campaigns",
      "arguments": {}
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "campaigns": [
      {
        "campaign_id": "f_51877",
        "name": "VIP drop",
        "status": "draft",
        "include_segments": [
          "VIPACCESS opt-ins"
        ],
        "exclude_segments": []
      },
      {
        "campaign_id": "f_51702",
        "name": "Restock alert",
        "status": "ended",
        "include_segments": [
          "All Customers and Subscribers (INTL Included)"
        ],
        "exclude_segments": []
      }
    ]
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.