Get a checkout or billing link
upgrade_planGet a secure Stripe link for the user to upgrade or manage their ScriptGrain plan — everything completes in their browser on Stripe's hosted pages; this tool itself never modifies the subscription or charges anything. Two modes: pass plan (and optionally billing_cycle) to mint a CHECKOUT link starting that subscription — the right move when a free account hits a credit wall (plans: writer £12/mo, operator £29/mo, studio £99/mo, agency £299/mo; annual saves ~20%). Omit plan to get the billing-PORTAL link for managing an existing subscription. Already-subscribed accounts asking for a new checkout are routed to the portal automatically. Share the returned link with the user promptly — links expire after a few minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Start a NEW subscription checkout for this plan. Omit to manage an existing subscription via the portal. | |
| billing_cycle | No | Billing cycle for a new-plan checkout (default monthly; annual is ~20% cheaper). |