Preview a Postlyra post
preview_postUse this when requesting a saved draft screenshot, public browser preview or validation warnings. Find draftId with search_post_drafts. Returns documentJson/richHtml, JPEG and enables a public preview link. Use show_post_card for an in-chat card. Follow display.instruction; check screenshot.truncated and retry unavailable screenshots without recreating the draft. May fetch external image URLs for screenshot rendering. Never publishes.
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": {
"draftId": "<draftId>"
},
"name": "preview_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | Owner-bound draftId from search_post_drafts/create_post_draft; same as postId. | |
| channelId | No | Preview this owner-bound channel's auto-signature. Without a channel use the account default or post override. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| card | No | Card attachment/fallback. attachedToThisResult supplies the card: do not auto-call show_post_card. Rendering depends on host support. | |
| text | No | ||
| title | No | ||
| locale | No | ||
| postId | No | ||
| status | No | ||
| display | No | ||
| draftId | Yes | ||
| message | Yes | ||
| revision | No | ||
| richHtml | No | ||
| warnings | Yes | ||
| channelId | No | ||
| updatedAt | No | ||
| previewUrl | No | ||
| screenshot | No | ||
| validation | Yes | ||
| mediaStatus | No | Present only for images validated and durably imported in this call; excludes arbitrary external document media. | |
| documentJson | No | ||
| inlineButtons | No | ||
| screenshotUrl | No | JPEG screenshot of the saved Telegram preview; null if rendering is temporarily unavailable. | |
| telegramElements | No | ||
| signatureSnapshot | No | ||
| signatureSelection | No | ||
| deliveryDocumentJson | No | Composed delivery with signature. Edit documentJson; never copy this composition into the post body. | |
| deliveryInlineButtons | No | ||
| formattingSuggestions | No | Optional formatting ideas. They do not affect validation, publication or user consent. The user's choice always takes priority. |