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 saves the new design on the Pin, and get_pin_design then reports workspaceStatus pending_apply with it as pendingMediaUrl, which you pass to select_pin_design_variation. Tell the user the new design is ready and let them choose, rather than applying it silently. pending_apply 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>",
"postId": "<postId>"
},
"name": "regenerate_pin_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Text to overlay on the new design. This is not the Pin's title. | |
| colors | No | Color palette for the new design, as hex values such as #0077CC. Anything that is not a hex color is rejected. Omit to keep the current colors. | |
| postId | Yes | Pin ID from list_posts | |
| mediaUrl | No | One of this Pin's own images to build the new design around: a URL from get_pin_design's sourceImageCandidates (userPicked or ranked), or its originalPhotoUrl. Any other URL is rejected; for an image of the user's own, use uploadId. | |
| uploadId | No | An image of the user's own, 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. | |
| 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 |