restore_post_version
Restore an old post version into its variant if available, otherwise the main post. Current text is saved to history first.
Instructions
Put an old version back (into its variant if it still exists, else the main post). The current text is saved to history first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move. | |
| version | Yes | Version id from the history list. | |
| platform | No | Which post of the session: linkedin (default, posts/linkedin.md), x (posts/x.md), youtube (the long wide video: title + description, posts/youtube.md) or vertical (one vertical video and caption for TikTok, Instagram Reels and YouTube Shorts, posts/vertical.md). |