set_cover
Set a custom cover image for a social media post by extracting a video frame, uploading a local file, or providing base64 image data. Returns per-platform applicability.
Instructions
Set a cover override for one post: extract a frame from the post's media (frameSec), or re-encode a repo-local image (filePath) or base64 bytes. Materializes data/plans//covers/.jpg and writes post.cover; returns a per-platform applicability map (what the engines can actually apply - IG frame-only at publish, FB Reels + YouTube at publish and post-hoc, LinkedIn upload-ceremony-only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | No | Base64-encoded JPEG/PNG/WebP bytes (max 4 MB) | |
| postId | Yes | Post id, e.g. r06 | |
| campaign | Yes | Campaign id from plan_list | |
| clientId | No | Optional client id to scope this call (defaults to the active client) | |
| filePath | No | Repo-relative or absolute path to a JPEG/PNG/WebP inside the repo | |
| frameSec | No | Extract this second of the post's own video as the cover (clamped to duration) |