Unsubscribe from chosen senders
subscriptions_cleanupUnsubscribe from senders picked from a subscriptions_scan plan. One-click senders are unsubscribed by the server; senders that unsubscribe by email get a DRAFT in Drafts that the user sends themselves (nothing is ever sent); link-only senders come back as a link for the user to open. backlog "archive" also archives what those senders already sent. Only sender_keys from the plan are accepted, and each sender is asked once. continue: true with the same plan_id finishes archiving. When the scan's card is shown, the user picks and runs the cleanup on the card; this tool is for senders the user named in chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backlog | No | archive = also archive the mail these senders already sent; keep = leave it. Default keep. | |
| plan_id | Yes | The plan_id from subscriptions_scan. | |
| continue | No | true = only continue archiving for a plan that already ran. | |
| sender_keys | Yes | The senders to unsubscribe from: sender_key strings from that scan, copied exactly as quoted in its text (e.g. "list:news.example.com", "from:deals@example.com"). Not names, addresses or domains. At least one, unless continue is true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | Always 'subscription_plan'. | |
| state | No | pending, executed, expired or error. | |
| dashboard_url | No | Absolute link to the dashboard. | |
| subscriptions | No | plan_id, inbox, summary counts, senders and (once run) results and backlog. | |
| schema_version | No | Card envelope version. |