get_post_context
The drafting bundle for one account, or several: workspace, account, and the account's recent posts.
workspace: name, website, logoUrl (the brand logo, for visuals), brandVersion, timezone, preferredTimes, tagOutboundLinks.account: id, name, handle, token health,postsLeftTodayandnextFreeAt(room left and the earliest time a post fits: no need to count recent posts; they hold the owner's own per-account limit when lower,limitSource: "owner"),dailyPostCap(posts per rolling 24h on the owner's plan, scheduled ones included), with posting slots itsqueue(slots, taken, how many more posts fit in the next 7 days,nextFree), for Pinterest itsboards, for Slack itsslackChannelsanddefaultSlackChannel, for InstagramrecentTags(handles it tagged).recentPosts: up to 15 of the account's published posts with their metrics. They are the account's voice. Empty means no history.performance: what performed, from Antwork's measured metrics over 90 days:topPosts(posts published through Antwork, best first byrankedBy, the metric that matters on that platform: saves on Instagram, link clicks on Pinterest, watch time on YouTube...) andfollowers(count, change). Lean on what the top posts share (topic, hook, format) when choosing what to write. Absent when nothing is measured yet.
Args:
platform: "linkedin", "x", "facebook", "instagram", "threads",
"tiktok", "youtube", "pinterest", "bluesky", "discord", "mastodon",
"telegram", "google_business" or "slack". Implied by account_id.
With neither, the error lists the connected platforms and accounts.
account_ids: Several accounts at once (one post per account): an accounts
list, each with its own recent posts (fewer per account).
Overrides platform / account_id.
account_id: One account. Needed when the platform has several:
otherwise error: "account_ambiguous" lists them.
workspace_id: Workspace ID or name. Optional if user has only one
workspace.
routine_id: Run an Autopilot routine the user saved in Antwork (a scheduled
task's prompt names it). Adds routine: its brief, mode, post
limit, what is already queued and instructions to follow. With no
account named, reads the routine's accounts.
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": "get_post_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | The user's underlying goal for this call, in one sentence without personal details. Used for product analytics only. | |
| platform | No | ||
| llm_model | No | The model identifier of the calling assistant, or "unknown". Used for product analytics only. | |
| account_id | No | ||
| routine_id | No | ||
| account_ids | No | ||
| workspace_id | No | ||
| conversation_id | No | Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _mcp_instructions | No | Server-issued metadata for this conversation. |