add_content_in_library
Adds an evergreen post to a content library so RecurPost can republish it on the library's schedule instead of publishing immediately.
Instructions
Add an evergreen post to a content library; RecurPost republishes it on the library's schedule, nothing is published right away. id is the library id (cd_id from library_list). message is required; per-network texts and media work as in post_content. is_top_of_queue 1 makes it go out next; content_livedate and content_expiredate (YYYY-MM-DD) limit when it may go out. Rarely used options (Instagram location, people, product and reel tags, audio, collaborators, X threads, AI labels, YouTube playlists, per-network media and covers) are reachable with call_endpoint on the same endpoint; find_endpoints shows them.
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": {
"id": "<id>",
"message": "<message>"
},
"name": "add_content_in_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Library id (cd_id from library_list). Exactly one. | |
| url | No | Link to share with the post. On a text post the page's title, description and image are fetched and saved as the link preview; when omitted, the first link found in message is used instead. | |
| gbp_cta | No | Call-to-action button on the Google Business post. Case-insensitive. An unknown value or None saves no button. On a link post with no CTA given, Learn more pointing at the link is set automatically. Default: None. | |
| message | Yes | Post text. \r\n is normalised to \n. The first link in it is used for the link preview when url is omitted. | |
| alt_text | No | Alternative text per image, in image_url order; a single string applies to the first image. At most 1000 characters each. Saved on the Facebook, Twitter/X, LinkedIn, Pinterest, Threads and Bluesky tabs. | |
| pi_title | No | Pin title. The destination link of the pin is url or the first link in the text. | |
| yt_thumb | No | Custom thumbnail URL for the YouTube video. Public image URL; copied to RecurPost storage unless host_images_on_recurpost is off. | |
| yt_title | No | Video title. YouTube needs a video_url; message or yt_message is the description. | |
| image_url | No | Image URLs, in display order. Send a JSON array (or repeat image_url[] in form encoding); a single string is accepted as a one-item list. At most 20 images. | |
| video_url | No | A public mp4 or mov URL (Google Drive share links are accepted and resolved to the download URL). The file is downloaded and stored on RecurPost storage, so the call takes as long as the download. | |
| bs_message | No | Text for Bluesky accounts when it should differ from message. | |
| fb_message | No | Text for Facebook accounts when it should differ from message. | |
| in_message | No | Text for Instagram accounts when it should differ from message. | |
| ln_message | No | Text for LinkedIn accounts when it should differ from message. | |
| pi_message | No | Text for Pinterest accounts when it should differ from message. | |
| th_message | No | Text for Threads accounts when it should differ from message. | |
| tk_message | No | Text for TikTok accounts when it should differ from message. | |
| tw_message | No | Text for Twitter/X accounts when it should differ from message. | |
| yt_message | No | Text for YouTube (the video description) accounts when it should differ from message. | |
| gbp_cta_url | No | Link the button opens. Not used for Call now. With gbp_cta=Offer and no gbp_redeem_offer_link, this value doubles as the redeem link. | |
| gmb_message | No | Text for Google Business accounts when it should differ from message. | |
| ln_document | No | Public URL of a document to post as a LinkedIn document (carousel) post: PDF, PPT, PPTX, DOC or DOCX, detected from the file bytes, not the file name. | |
| yt_category | No | Category name, matched exactly against the list. An unknown or missing name falls back to the default category of the workspace owner's YouTube settings (Entertainment when none is set). | |
| fb_post_type | No | Facebook post type. Case-insensitive; an unknown value keeps feed. Default: feed. | |
| in_post_type | No | Instagram post type. Case-insensitive; an unknown value keeps feed. A reel needs a video_url. Default: feed. | |
| workspace_id | No | Workspace to act in (ws_id from workspace_list). Omit to use your default workspace. | |
| yt_user_tags | No | Video tags, comma-separated. | |
| first_comment | No | First comment posted right after the post, commonly hashtags. Applied on Facebook Pages, LinkedIn and Instagram feed posts unless a network-specific first comment is given. | |
| tk_allow_duet | No | Allow duets. Only no switches it off. Default: yes. | |
| gbp_offer_terms | No | Terms and conditions of the offer. | |
| gbp_offer_title | No | Offer title; offer fields are used when gbp_cta is Offer. | |
| is_top_of_queue | No | 1 posts this content next on every account the library's schedules cover. Any other value means 0. One of: 0, 1. Default: 0. | |
| content_livedate | No | First day the post may go out, YYYY-MM-DD; kept as a draft until then. A datetime such as 2026-11-01T00:00:00+05:30 keeps its date part (the first ten characters); any other value answers 400. Blank means active at once. | |
| fb_first_comment | No | Facebook first comment; overrides first_comment on Facebook. | |
| in_first_comment | No | Instagram first comment (feed posts only); overrides first_comment on Instagram. | |
| ln_first_comment | No | LinkedIn first comment; overrides first_comment on LinkedIn. | |
| ln_document_title | No | Title shown on the LinkedIn document. Defaults to the file name without its extension. | |
| tk_allow_comments | No | Allow comments on the TikTok video. Only no switches it off. Default: yes. | |
| tk_allow_stitches | No | Allow stitches. Only no switches it off. Default: yes. | |
| tk_privacy_status | No | Who can watch the TikTok video. Case-insensitive, spaces or underscores. Any other value is saved as Public to Everyone. | |
| yt_privacy_status | No | Video privacy. Lower-cased and stored as given; use one of the listed values. Default: public. | |
| content_expiredate | No | Last day the post may go out, YYYY-MM-DD; a datetime keeps its date part. Must be on or after content_livedate when both are sent; any other value answers 400. Blank means it never expires. | |
| gbp_offer_end_date | No | Offer end, YYYY-MM-DD HH:MM:SS. | |
| gbp_offer_start_date | No | Offer start, YYYY-MM-DD HH:MM:SS. | |
| gbp_offer_coupon_code | No | Coupon code shown on the offer. | |
| gbp_redeem_offer_link | No | Link to redeem the offer. | |
| in_reel_share_in_feed | No | Whether a reel also appears in the profile feed. Only read when in_post_type is reel. Default: yes. | |
| yt_video_made_for_kids | No | Whether the video is made for kids. Only yes switches it on. Default: no. | |
| host_images_on_recurpost | No | Copy images and custom thumbnails to RecurPost storage (the default). Send false, 0 or the form string "false" to keep your own URLs instead; they must then stay reachable until every post using them has been published. Default: true. |