Preview a send
postkey_preview_actionPostkey: Shows exactly what postkey_schedule_post, postkey_publish_automation or postkey_send_reply would do with these arguments, without doing it: the time it understood, the accounts or the person it reaches, the words, the limits after it, issues, and whether it would wait for approval. Changes nothing and sends nothing. Call it before every send and show the person the result; then call that send tool with the same arguments and the preview_id it returns. A preview is refused when the send could not happen at all (not_found, outside_24h_window, the plan's limit on automations switched on): fix that first. Anything else the send would meet, a full weekly post limit included, is listed in issues and the preview is still ok. At most 500 preview calls a day per connection.
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": {
"tool": "<tool>",
"args": "<args>"
},
"name": "postkey_preview_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | The exact arguments you would pass to that tool, checked against its own input schema (a preview_id in them is ignored). | |
| tool | Yes | The send tool to preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: refused (isError; code, message, guide_topic, url); no change. | |
| next | No | What to do next. | |
| sent | No | Always false. | |
| tool | No | The send tool previewed. | |
| would | No | What it would do: the post's time (understood_as), targets (each with send_refuses: the code the send would refuse it with) and weekly count; the automation's approval text and limit; or the reply's recipient, text and window. | |
| issues | No | Problems that would make it fail or surprise the person. | |
| preview | No | Always true: this was a preview. | |
| preview_id | No | Pass it to the send tool with the same arguments (valid for the same UTC day). | |
| send_policy | No | Replies and automations: held_in_postkey or confirm_in_chat. | |
| held_because | No | Why it would wait even on a direct connection. | |
| publish_policy | No | For a post: held_in_postkey or confirm_in_chat. | |
| untrusted_note | No | Present when outside text is wrapped as { untrusted: true, text }. | |
| nothing_changed | No | Always true. | |
| would_wait_for_approval | No | true: the send would wait in Approvals. |