- OAuth — connect from a browser-capable client (Claude Code, Claude Desktop, Cursor) with no key at all; a browser window signs you in. OAuth sessions act with your full user access, bounded only by your workspace role.
- API key — send
Authorization: Bearer ak_…for headless use. Keys are additionally bounded by their scopes.
Tools
These tables list every tool the server registers. Scope applies to API-key connections; role checks apply to everyone.Workspace & identity
Platforms count length differently, so
get_platform_limit measures a draft the way the platform will. X weighs characters (a URL counts 23, most emoji 2) against a per-account limit of 280, or 25,000 with Premium. Threads counts an emoji as its UTF-8 byte length, usually 4. Bluesky counts grapheme clusters, so a multi-code-point emoji counts 1. Every other platform counts plain characters.
Tasks
Responses are sized for an agent’s context.
list_tasks returns one row per task (id, title, status, publishMode, publishAt, platforms, automationId, summary, url), so a full review queue fits in one response. Tools that change a task answer with a confirmation and a compact record (id, title, status, publishMode, publishAt, requiresReview, approvedAt, approvedBy, url, reviewUrl) instead of the whole task. get_task, claim_task and claim_next_task return the full task. Run logs come only from get_task_logs.
Content
add_content_to_task takes either one post (title, body, contentType, media, sortOrder, destinations, linkUrl, linkAction, topicTag, aiDisclosed) or items, an array of posts with those same fields — a thread is one call whose items carry sortOrder 0, 1, 2…, and a multi-platform task is one call with an item per platform. A batch is all-or-nothing: every item is validated first, one bad item means nothing is added and the reply names each bad item by index (item 2 (threads, sortOrder 2): …), and items that omit sortOrder are numbered by position within their contentType. Do not combine items with the single-post fields. Media is addressed by workspace fileId, from get_upload_url; a URL is not accepted. The reply lists the id of every created item. From the CLI: ait task add-content <taskId> --items '<json array>'.
Each content item publishes only to its destinations, for example ["x"], ["rss:news", "ghost"] or ["folder:<uuid>"]. When you omit it, the task’s platforms decide: each platform named for the item’s content type takes it (an x post goes to x, an article to every feed listed), and folders listed take every item that has media. The reply says where each item will publish. update_content_item takes destinations to move an item. To stop publishing to a platform, delete its items. From the CLI: --destinations rss:news,ghost on task add-content, task submit, and task update-content.
add_content_to_task and update_content_item never echo a body back. A single-post add and update_content_item answer with the item’s id, type, destinations, media list and characters: the body’s count under the platform’s own rule, next to that platform’s limit. A batch add (items) answers with a summary per item: id, type, sortOrder, destinations and mediaCount.
To change part of a long body, pass update_content_item a bodyEdits list of { oldText, newText } replacements instead of body. They apply in order, and each oldText must match the body exactly once; if one misses or matches more than once, nothing is changed and the error names it. From the CLI: --replace <old> --with <new>, or --edits '<json array>', on task update-content.
To schedule many tasks, pass schedule_task a tasks list of { taskId, publishAt } instead of one taskId, listing each task once. Entries apply in order, so several "auto" entries each take the next open slot. The reply has one row per entry, { taskId, ok: true, status, publishMode, publishAt, url } or { taskId, ok: false, error }, and a failed entry never blocks the others. From the CLI: task schedule <id> <id> … --auto, or task schedule --tasks '<json array>'.
linkUrl is where a post sends readers, as a full http(s) URL, or {articleUrl} / {youtubeUrl} to use the URL the task’s article (its Feed article, or its Ghost post when there is no Feed) or YouTube video gets at publish (the link is dropped if that destination produced none); Google Business Profile publishes it as the post’s call-to-action button, which linkAction names: learn_more (“Learn more”, the default), book, order (“Order online”), buy, or sign_up. update_content_item and create_task’s content take the same two fields; on update_content_item, linkUrl: null removes the link. From the CLI: --link-url and --link-action on task add-content, task submit, and task update-content (--clear-link removes it).
topicTag is a Threads post’s topic. Threads has no hashtags: a post carries at most one topic, shown beside the author’s name without a #, and a #tag written in the body publishes as a bare word. Use 1–50 characters with no periods or ampersands; a leading # is dropped. It is accepted only on threads items, and on a multi-post thread only on the first post (sortOrder 0). update_content_item and create_task’s content take it too; on update_content_item, topicTag: null removes it. From the CLI: --topic on task add-content, task submit, and task update-content (--clear-topic removes it).
aiDisclosed declares an item’s media as AI-generated when the workspace didn’t generate it itself (e.g. an upload from an outside tool like Sora) — media generated in the workspace (generate_image, generate_video, etc.) is disclosed automatically and never needs this. It is OR’d with that automatic provenance at publish, so it can only add a disclosure label (YouTube, Instagram, TikTok), never remove one. update_content_item and create_task’s content take it too. From the CLI: --ai-disclosed on task add-content, task submit, and task update-content (--ai-disclosed=false retracts it).
Automations
Skills, files & folders
Tools like
search_web, search_x, and generate_image belong to the built-in worker’s in-sandbox toolset — they run while it drafts content and are not exposed on the public MCP server. If your agent needs research or image generation, bring its own.The gate is role-based, not scope-based
Every write tool also checks the caller’s workspace role, independently of key scopes, using the same tiers as the app: a Viewer key can only read, a Reviewer key can also comment, approve, reject, schedule, and publish, and drafting (creating, claiming, completing, and editing tasks and their content) needs an Editor or Admin key. Scopes bound what a key may touch; roles decide what its owner may do. A call above the caller’s tier fails withViewers can't do this. …, Only editors and admins can do this., or Only workspace admins can do this., depending on the lowest role allowed.