List email campaigns
list_campaignsUse this when someone asks which email campaigns one of their websites has. Returns each campaign's id, name and created and edited times, 20 per page by default (no recipients, subject or content). Not for sending a campaign.
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": {
"websiteId": "<websiteId>"
},
"name": "list_campaigns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Campaigns per page, from 1 to 50; defaults to 20 | |
| cursor | No | The page.nextCursor of the previous page for the same website; absent for the first page | |
| websiteId | Yes | Website whose campaigns to list |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | hasMore is true when more campaigns follow; pass nextCursor as cursor to get them | |
| campaigns | Yes | Campaign identity only. Recipient lists, subjects, message content, user ids, organization ids and arbitrary metadata are excluded. |