schedule_x_post
Posts to X (Twitter) only, with nothing going to LinkedIn: right away (publish_now: true) or at scheduled_for. Over MCP this needs Pro+ or Apex (posting to X itself is on Pro and up in the dashboard and REST API), and the user's X account must be connected in LeadShark (Settings → My accounts). Up to 20 images by URL (image_urls): JPEG, PNG, WebP or one GIF on its own, the same as the dashboard. Long text on a free X account (280 characters per post) goes out as a thread of up to 8 posts; with X Premium the full post goes out. Up to 10 posts to X per account per UTC calendar day, counted together with LinkedIn cross-posts: a post for a full day (or an edit moving it to one) is refused with code x_daily_limit, so pick another day. A post is never sent twice: if X doesn't confirm it, its status is 'unknown' and it isn't retried (ask the user to check their X profile). A time without an offset is read in timezone, else the user's Settings timezone, else UTC, and the reply says which zone was used. To post the same text to LinkedIn and X together, use schedule_post_with_automation with crosspost_x: true instead. Add automation to run a comment-to-DM lead magnet on the post (keyword → DM with your resource), set up in the same call. List, edit or cancel X posts with manage_x_posts.
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": {
"text": "<text>"
},
"name": "schedule_x_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The post text. LinkedIn-style @mentions are not converted; write X handles as plain text. Can be empty when image_urls or video_url is set. | |
| 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. | |
| timezone | No | IANA timezone for a scheduled_for without an offset (e.g. 'Europe/Tallinn'). Default: the user's Settings timezone. | |
| image_url | No | One image URL (same as image_urls with one item). | |
| video_url | No | One public MP4 video URL (https, up to 50 MB), on its own: not with image_urls. X usually takes videos up to 2:20 unless the X account has Premium; a video X can't process fails the post with a clear reason. | |
| automation | No | An X lead-magnet automation that starts when this post goes out: someone replies with a keyword and gets one DM with your resource, a public reply under their comment, or both. Pro+ runs 1 X automation at a time, Apex 10; X DM permission is needed (the call is refused up front if not, with a code such as plan_required or x_dm_permission_required). If the plan's limit is already running when the post goes out, it doesn't start (error x_automation_limit). The post's reply shows automation.state: 'waiting' until it goes out, then 'live' (x_automation_id) or 'not_started' (error). | |
| image_urls | No | Up to 20 public image URLs (https; JPEG, PNG, WebP or GIF). LeadShark downloads them and attaches them to the post. A GIF must be the only image. Large images are resized for X. | |
| on_conflict | No | Optional, with scheduled_for: 'push' frees a taken 15-minute slot by moving the post to X in it, and every later scheduled post to X, back (one slot each, or by push_by_minutes / push_by_hours / push_by_days). The reply lists what moved under pushed. Posts going out within 15 minutes and LinkedIn posts with 'Also post to X' are never moved (PUSH_FAILED). | |
| publish_now | No | true: post to X right away (the reply has the final status and the link). Omit scheduled_for. | |
| push_by_days | No | Optional, with on_conflict: 'push': move by this many days. | |
| x_engagement | No | X first comment and auto-repost (Pro+ and Apex, and the Apex trial): a first comment right after the post goes out, and one repost later, optionally removed 12 hours after. Each runs once and is never retried after an unclear result. The post's `followups` (manage_x_posts get/list) show what happened. null turns them off. | |
| push_by_hours | No | Optional, with on_conflict: 'push': move by this many hours. | |
| scheduled_for | No | When to post, ISO 8601 (e.g. '2026-11-03T09:00' or with an offset). Within one year. Goes out within about 15 minutes of this time. | |
| allow_duplicate | No | Optional. A post to X with the same text as another of this account's posts to X that is scheduled or published within 24 hours is refused with code duplicate_post, so a workflow that runs twice cannot post twice. Pass true only to post the same text again on purpose. Separately, posts to X need their own 15-minute slot (:00, :15, :30, :45): a second post in a taken slot is refused with code TIME_CONFLICT (pick another time, or pass on_conflict: 'push'). publish_now is refused with code too_close when another post to X went out less than 5 minutes ago or is due within 5 minutes. | |
| push_by_minutes | No | Optional, with on_conflict: 'push': move the posts in the way by this many minutes instead of one slot. |