Check Media Compatibility
validate_post_mediaPre-flight check for media that was generated, edited or picked outside the library. The result starts with summary: one plain sentence per definite problem (for example "X takes videos up to 20 minutes; this one is 52 minutes. Trim it or leave X out."); relay those to the user as they are. create_post, schedule_post, update_post and convert_draft run the same check at create time and refuse the same problems. Compares the same files against the media rules of every requested destination and returns, per destination, the status, the measured width/height/duration/codec/frame rate, the configured limits, and one issue per mismatch with a fix string naming the exact change required (for example the crop dimensions for an aspect-ratio failure). Library files are measured from their bytes, and the measurements are not saved; a not-yet-uploaded file is judged from the width, height and durationSeconds given in files, and every omitted property yields needs_review instead of a pass. Read-only: does not upload, publish or change files. Resolution, aspect ratio, codec and frame rate mismatches are the most common cause of a post failing at publish time. The limits are Social media studio configured limits, not a guarantee of platform acceptance.
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": {
"targets": "<targets>"
},
"name": "validate_post_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Local file metadata for a check BEFORE uploading. Supply this OR fileIds, never both. Empty array checks a text post. Include the measured width, height, duration, codec and frame rate when known — every omitted property becomes a needs_review warning instead of a pass. | |
| fileIds | No | Ordered media library file IDs from presign_media_upload or list_media. Upload the actual bytes with HTTP PUT first. Use a matching postType. On update, replaces all attachments; [] clears them. | |
| targets | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| results | Yes | ||
| sizeUnit | No | ||
| nextSteps | Yes | ||
| ruleSource | No | ||
| limitations | Yes | ||
| decisionRequired | Yes | ||
| publicationAttempted | Yes |