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.
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 |