Edit a published post
edit_postUpdate an already published post on Facebook, LinkedIn, X, Google Business, Telegram or YouTube. Preview the changes first and send them only after user approval.
Instructions
Change a post that is already live, in place. Facebook (Page posts), LinkedIn, X, Google Business, Telegram and YouTube. text is the new text (sent as each network's own field; YouTube: the description). Telegram also takes telegram_action: pin, unpin, stop_poll, edit_live_location, stop_live_location, and in params: telegram_reply_markup (buttons), telegram_parse_mode, telegram_link_preview, telegram_show_caption_above_media, telegram_pin_notify, telegram_media + telegram_media_type (replace the photo/video by URL or file_id), telegram_location. Google Business: the text plus call to action, event and offer fields in params (cta_type, cta_url, event_title, event_start_date, event_start_time, event_end_date, event_end_time, offer_coupon, offer_redeem_url, offer_terms); its media and schedule cannot be changed. Facebook: is_pinned, facebook_page_id. LinkedIn: linkedin_visibility, linkedin_disable_reshare. YouTube (post_id = video id), in params: title, tags, privacyStatus, categoryId, publishAt, defaultLanguage, localizations {lang: {title, description}}, localizations_remove, brand_partner (a UC… channel id), embeddable, publicStatsViewable, selfDeclaredMadeForKids, containsSyntheticMedia, license, recordingDate, paid_partnership; editing these spends about 51 units of the account's daily YouTube allowance. Instagram, TikTok and Threads posts cannot be edited. Needs the user's approval: call it first without confirmed to get a preview (nothing is sent), show the user exactly what will go out, and repeat the call with confirmed: true only after they approve.
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": {
"user": "<user>",
"platform": "<platform>",
"post_id": "<post_id>"
},
"name": "edit_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | New text of the post (Telegram: text or caption). | |
| user | Yes | Upload-Post profile name. | |
| params | No | Other API fields for this action, with the REST API's own names (snake_case) and shapes. Per-network fields listed in the description. Leave out what you do not want to change. | |
| post_id | Yes | The post id on the platform, as returned by the upload or get_media (Google Business: the full accounts/…/localPosts/… name). | |
| platform | Yes | ||
| confirmed | No | Set to true only after the user has seen the preview this tool returns without it and approved it. Without it nothing is sent. | |
| telegram_action | No | Telegram only: an action on the message instead of (or with) a text change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |