List Campaigns
list_campaignsList campaigns in the user's MachFive workspace.
CALL THIS FIRST before generate_sequence or generate_batch — you need a campaign ID to generate emails. If the user hasn't specified a campaign, call this and ask them to pick one.
Returns JSON array of campaigns with id, name, and created_at. Use the 'id' field as campaign_id in generate calls.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_campaigns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search string to filter campaigns by name (case-insensitive substring match). Leave empty to list all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |