manage_x_posts
The user's X-only posts (made with schedule_x_post or in the dashboard): 'list' (newest first; filter by status), 'get' one, 'edit' a scheduled one (text, images, scheduled_for and/or its automation), or 'cancel' a scheduled one, or 'delete' a published one on X (destructive: needs confirm: true, ask the user first; it also ends that post's X automation and cancels its pending first comment / repost). Only posts with status 'scheduled' can be edited or cancelled; once sending has started the reply is a 409. Statuses: scheduled, sending, published (has x_post_url), failed (error_category / error_message say why), unknown (X didn't confirm it; never retried), cancelled. Cross-posts made with crosspost_x on a LinkedIn post are not listed here; they show on the LinkedIn post (list_scheduled_posts).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "manage_x_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | edit: new text. | |
| limit | No | list: posts per page (1-100, default 20). | |
| act_as | No | APEX+ or admin act_as (optional): operate this tool AS one of your managed profiles — pass that profile's LeadShark account email (see list_profiles). Requires an active delegation from the profile owner plus an APEX+ plan or admin act_as enabled by LeadShark (which runs on the profile's own plan); anything else is refused with a reason, never silently redirected. The action runs under the managed profile's own budgets, approval queue, and action log. With a Team key, act_as is required on every call and must be one of the key's accounts (list_profiles); the call must also be within the permission groups the key has on that account, or it's refused with permission_missing. Hourly/daily limits are that profile's own. | |
| action | No | 'list' (default), 'get', 'edit', 'cancel' or 'delete'. | |
| offset | No | list: posts to skip (default 0). | |
| status | No | list: only posts with this status. | |
| confirm | No | delete: must be true. Deleting an X post cannot be undone, so ask the user first. | |
| timezone | No | edit: IANA timezone for a scheduled_for without an offset. | |
| tweet_id | No | delete: the post's id on X (any recent post from the user's connected X account). Or pass x_post_id for one LeadShark sent. | |
| video_url | No | edit: one MP4 video by URL (up to 50 MB); it replaces the post's current images or video. | |
| x_post_id | No | get / edit / cancel (required): the X post id, from list or schedule_x_post. delete: this or tweet_id. | |
| automation | No | edit: set the X automation that starts when this scheduled post goes out (same fields as schedule_x_post's automation: keywords, resource_url, dm_template, send_dm, send_reply, reply_templates). The whole automation is replaced. | |
| image_urls | No | edit: new images by URL (up to 20); they replace the post's current images. | |
| on_conflict | No | edit, with scheduled_for: 'push' makes room in a taken 15-minute slot (moving later: that slot's post to X and later ones move back; moving earlier: the posts in between each move back one slot). push_by_minutes / push_by_hours / push_by_days set the offset when moving later. | |
| push_by_days | No | edit, with on_conflict: 'push': offset in days. | |
| x_engagement | No | edit: set (object) or turn off (null) the first comment and repost for this scheduled post (same fields as schedule_x_post's x_engagement). | |
| push_by_hours | No | edit, with on_conflict: 'push': offset in hours. | |
| scheduled_for | No | edit: new time, ISO 8601 (same rules as schedule_x_post). | |
| allow_duplicate | No | edit: pass true to keep new text that another post to X on this account already has within 24 hours (otherwise refused with duplicate_post). Moving the post into a 15-minute slot another post to X already has is refused with TIME_CONFLICT, unless on_conflict: 'push'. | |
| push_by_minutes | No | edit, with on_conflict: 'push': offset in minutes. | |
| remove_automation | No | edit: true removes the automation from this scheduled post. |