preview_create_posts
Use this before create_posts whenever the batch schedules any Pin: it is the first of the two calls a bulk create with scheduled Pins takes, and it changes nothing and spends nothing. It takes the same accountId, posts and retryOfBatchId create_posts will be called with, and returns for every entry in order whether it would be created as a draft or scheduled, its Board and Board section, and its publish time, or "next open slot" for a useNextOpenSlot entry, whose slot is only chosen when create_posts runs; or why the entry would be refused. It also returns what the batch would cost: credits on accounts that pay per scheduled Pin, the free-trial allowance, no charge, or the plan's post limit, plus a previewToken when every entry would be created and the account can pay. Show the user the entries and the cost and ask before calling create_posts with that previewToken and the identical arguments, within 30 minutes; any change needs a new preview. 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>",
"posts": "<posts>"
},
"name": "preview_create_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | Yes | One entry per Pin, each with create_post's fields except intervalBoards and carouselItems. Results come back in this order. | |
| accountId | Yes | Numeric Tailwind account ID returned by list_accounts | |
| retryOfBatchId | No | When resending entries that failed, the batchId they failed in. Without it, resending the exact entries of a batch returns that batch instead of trying them again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| results | Yes | One result per entry, in order | |
| summary | Yes | ||
| expiresAt | No | When previewToken stops being accepted (ISO 8601) | |
| previewToken | No | Passed to create_posts with the same arguments. Absent when any entry would be refused or the account cannot pay. |