antworkDOCS

Tool reference

What your assistant can call, and which of those calls change something.

Tools23

The catalogue

23 tools · 7 categories

Read-only tools never mutate state; destructive tools (publish, delete, disconnect) trigger explicit confirmation in clients that honour the destructiveHint annotation.

Identity & workspaces

ToolAccessWhat it does
list_workspacesReadList the user's workspaces (with isDefault), the signed-in account with its plan and post quota, and the active workspace's connected accounts.
set_default_workspaceWriteSet or clear the default workspace so subsequent tools omit workspace_id.
create_workspaceWriteCreate a new workspace owned by the authenticated user.
update_workspaceDestructiveChange the workspace name, website or logo, its timezone and preferred posting times, or outbound link tagging. Only the fields passed change; the result returns the workspace as saved.

Social accounts

ToolAccessWhat it does
list_social_accountsReadAll connected social accounts with health, expiry, and platform.
get_connection_urlsReadOAuth URLs for connecting new social accounts.
disconnect_social_accountDestructiveRevoke a connected social account; tokens are deleted server-side.
fetch_platform_postsReadRead an account's recent posts straight from the platform, with their engagement.

Posts — read

ToolAccessWhat it does
get_post_contextReadOne-call drafting bundle: workspace identity and settings (timezone, preferred posting times), the target account, and its recent posts with engagement. Call this before writing.
list_postsReadList drafts, scheduled, published and failed posts. Filter by status, keyword, platform, campaign, or date range; group_by_day lays them out as a calendar with a link to the calendar page.
get_postReadSingle post with full payload (text, media, status, per-platform URLs, and an editUrl to the web composer).

Posts — write

ToolAccessWhat it does
create_postWriteCreate a DRAFT post. Does not publish or schedule on its own — follow up with schedule_post or publish_post.
create_campaignWriteDraft one idea across several accounts in one call, with separate copy per account. Each becomes its own post under a shared campaign.
update_postWriteEdit a post's text, hashtags, media, schedule time or per-platform settings.
delete_postDestructiveSoft-delete a post. For published posts also enqueues platform-side deletion when the connector supports it.

Posts — publishing

ToolAccessWhat it does
publish_postDestructivePublish one post, several, or a whole campaign now, and wait once for the platforms' answer with the live URLs. A post whose publish failed is retried through the same checks.
schedule_postDestructiveSchedule one post, several, or a whole campaign for a future time. A post that cannot be scheduled is reported on its own and the rest still go.

Analytics & planning

ToolAccessWhat it does
get_performanceReadEngagement per published post, per platform, for a given window. Totals are kept per platform, never summed across them.
get_engagement_historyReadPer-day engagement across the workspace, or for one post with post_id (cumulative and daily columns).

Media

ToolAccessWhat it does
list_mediaReadWorkspace media library — images, video, PDFs.
add_mediaWriteAdd media to the library and to every listed post in one call, from exactly one source: a file attached in ChatGPT, a public URL, a one-time upload address for one curl from a shell or Claude's code execution sandbox (allow api.antwork.io), or items already in the library. Appends; nothing already on a post is removed.
attach_mediaWriteSet a post's exact media list: reorder, remove, or clear with an empty list.
delete_mediaDestructiveSoft-delete a media item; does not affect posts that already reference it.
Tool argument schemas are introspected from the server live — connect a client and call tools/list to see the canonical JSON Schemas with required fields and types.