Check a post before publishing
validate_postCheck a post before scheduling or publishing: confirm per-channel caption limits, media validity, and scheduling rules, returning PASSES or exact refusals.
Instructions
Check a post BEFORE it is scheduled or published, and store nothing: (1) each caption’s length per channel against the limit Hermoso and the platform refuse on, plus X’s own weighted count (a link counts 23, an emoji 2) and whether it fits X’s 280 without Premium; (2) every media URL fetched the way a post fetches it, its bytes identified (a real image or video, never trusting the file name), measured (size, width, height, aspect, duration) and flagged when it cannot be decoded; (3) the whole schedule_post check run at at (default an hour from now): channels connected, which account, per-channel rules, photo shapes, the posting allowance. The answer is PASSES or the exact refusals schedule_post would give. Use it before a bulk schedule or when a user asks "will this work on Instagram?". Same fields as schedule_post. Free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "validate_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | the time to check it for (default an hour from now) | |
| link | No | ||
| brand | No | WHICH PROFILE the post lives in, for THIS CALL ONLY: an id or exact name from list_brands, needed when it was published in a profile this connection is not pinned to. A name that matches no profile, or two, is REFUSED and nothing is done. | |
| title | No | ||
| message | No | ||
| accounts | No | ||
| captions | No | per-channel captions | |
| channels | No | the channels to check against; omit to check only the media | |
| imageUrl | No | ||
| timezone | No | ||
| useQueue | No | ||
| videoUrl | No | ||
| imageUrls | No | ||
| channelOptions | No | rare per-channel extras: threadsChain[] / blueskyThread[] follow-ups threaded under it; linkedinPoll {question, options[], duration ONE_DAY|THREE_DAYS|SEVEN_DAYS|FOURTEEN_DAYS} a poll as the post; linkedinReshareOf repost this (link or urn); ytPlaylistId add to playlist; protectContent Telegram no forwarding/saving; telegramDocument file URL sent as the post; slackUsername / slackIconUrl / slackIconEmoji (:rocket:) the Slack app posts as that name and picture; sensitiveMedia [adult_content|graphic_violence|other] X media warning; geoRestriction {countries[] | excludeCountries[]} X media country limit (two-letter codes); textBackgroundPresetId Facebook text-only post on a coloured background (numeric preset id); tiktokLocationId + tiktokLocationName (search_tiktok_locations), tiktokMusicSoundId (songClipId from tiktok_ads_trending sounds), tiktokMusicVolume / tiktokOriginalSoundVolume 0-100, tiktokAdsOnly TikTok video as an ads-only post |