regenerate_pin_design
Use this to have Tailwind's AI generate a NEW design for an AI-designed (premium) Pin. Asynchronous and metered: it spends about 7 of the user's plan credits, takes a few minutes, and returns an id to poll with get_design_regeneration_status. Only works when get_pin_design lists "regenerate" in supportedOperations.
Because it spends the user's credits, confirm with the user before calling it, and say what it will cost. Calling it again after one finishes starts and charges ANOTHER regeneration, so poll before retrying.
The result does NOT replace the Pin's design on its own: a finished regeneration returns a variationUrl that you then pass to select_pin_design_variation. Tell the user the new design is ready and let them choose, rather than applying it silently. Afterwards get_pin_design reports workspaceStatus pending_apply with the new design as pendingMediaUrl; that is the expected resting state, not a failure, and it stays that way until the user picks the design.
To REVISE the design the Pin already has, rather than replace it, pass selectedVariationUrl as well: the active variation's templateImageUrl from get_pin_design. Without it the generator has nothing to revise and produces an unrelated design for the same credits, which is rarely what someone asking to adjust their current design wants. If the user did not say which Pinterest account to use and list_accounts returns more than one, ask the user which account to use before calling this — do not choose for them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Text to overlay on the new design. This is not the Pin's title. | |
| postId | Yes | Pin ID from list_posts | |
| mediaUrl | No | Publicly reachable image to generate the new design from, such as a URL from get_pin_design's sourceImageCandidates | |
| uploadId | No | Image staged with create_media_upload. Use instead of mediaUrl, not with it. | |
| accountId | Yes | Numeric Tailwind account ID from list_accounts | |
| premiumStyle | No | Visual style for the new design. Defaults to the Pin's existing style. | |
| userFeedback | No | What to change, in the user's own words (e.g. 'make the text bigger and use warmer colors') | |
| selectedVariationUrl | No | The design to revise: the active variation's templateImageUrl from get_pin_design. Pass it whenever the user wants their current design adjusted. Omit it only to generate a fresh, unrelated design. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regeneration | Yes |