Skip to main content
The CLI v0.5.4 stdio server advertises 67 tools. These schemas describe the CLI server; the remote server has its own live tools/list response. Always use the schema returned by your connected server. Authenticate with ap auth login, then start ap mcp. Tool calls use MCP tools/call. Resource identifiers are named id, unless a tool’s schema says otherwise.
Publishing, deleting, connecting accounts, and other mutations change your workspace. Review the intended account and content before calling them. Facebook Pages requires beta access; personal profiles and Groups are unsupported.

delete-account-import

Delete import progress only. Connected accounts and brands remain. Ask the user before discarding their progress.

import-accounts

Import 1–1000 social account rows from CSV. Headers: brand_name, platform, account_url; optional brand_slug, timezone, account_type. Returns a durable import id. Repeating the same import reuses progress. No passwords or provider tokens.

prepare-account-import

Create or reuse up to 25 brands. Repeat with nextOffset until null; safe to resume.

account-import-status

Check actual imported account connections and plan capacity. A link alone is not a connection. Vanity URLs may need explicit account confirmation.

authorize-import-account

Generate a fresh provider approval link for one row. Present it to the user, who opens it in their browser and approves the intended account. Then check status. Links expire after 10 minutes.

confirm-import-account

For needs_confirmation rows ONLY: show the actual account id/name and CSV URL to the user. Call only after the user explicitly confirms they match. tokenId must come from status; this never creates a connection.

list-posts

List posts with optional filters by brand, status, limit, and page.

get-post

Get a post by its ID.

create-post

Create a new post draft for a brand on one or more platforms.

update-post

Update the text, platforms, scheduled time, or media of an existing post.

delete-post

Permanently delete a post by ID.

publish-post

Immediately publish a post to all its platforms.

schedule-post

Schedule a post to be published at a specific date and time.

retry-post

Retry publishing a failed post.

rewrite-post

AI-rewrite the text of a post.

score-post

Score a post with AI feedback and return a numeric score with explanation.

list-brands

List all brands in the workspace.

get-brand

Get a brand by its slug.

create-brand

Create a new brand in the workspace.

update-brand

Update a brand name or timezone.

delete-brand

Permanently delete a brand by slug.

brand-auth-status

Show the platform connection status for a brand.

list-agents

List all agents in the workspace.

get-agent

Get an agent by its ID.

create-agent

Create a new publish or research agent.

update-agent

Update an agent name, prompt, frequency, or schedule.

delete-agent

Permanently delete an agent by ID.

run-agent

Trigger an immediate run of an agent.

toggle-agent

Enable or disable an agent.

agent-runs

List the run history for an agent.

list-kbs

List all knowledge bases in the workspace.

get-kb

Get a knowledge base by its ID.

create-kb

Create a new knowledge base.

delete-kb

Permanently delete a knowledge base by ID.

search-kb

Search a knowledge base with a text query.

ingest-kb

Ingest a URL into a knowledge base.

kb-docs

List documents stored in a knowledge base.

generate-ideas

AI-generate content ideas, optionally seeded from a knowledge base or topic.

list-ideas

List all saved content ideas.

enrich-idea

Enrich an idea (title/hook/angle) into platform-ready drafts across 1..5 platforms. Async — returns a job ID.

delete-idea

Permanently delete an idea by ID.

list-clips

List all video clips in the workspace.

get-clip

Get a video clip by its ID.

import-clip

Start AI clipping: import a long video from a public URL (e.g. a YouTube video). Poll get-clip until status is ready.

render-clip

Render a clip (uses credits). Call get-clip first for its editRevision and candidates.

create-clip-draft

Create a draft post from a rendered clip. Publish it with publish-post or schedule it.

upload-clip

Upload a local video file for AI clipping (multipart, any size). Poll get-clip until status is ready, then render-clip.

publish-clip

Publish, schedule, or save as a draft a rendered clip candidate.

delete-clip

Permanently delete a video clip by ID.

upload-media

Upload a local image or video and get back a media item () to pass in create-post or update-post media.

list-api-routes

List the REST routes api-request may call, as “METHOD /path/:param”. Optional prefix filter, e.g. “/clips”.

api-request

Call any Autoposting REST route on the allow-list (see list-api-routes) with your API key. Replace :params with real IDs.

list-carousels

List all carousels in the workspace. Get a carousel by its ID. Create a new empty carousel. AI-generate a carousel from a topic. Convert a carousel into a post draft. Permanently delete a carousel by ID.

list-webhooks

List all webhooks in the workspace.

get-webhook

Get a webhook by its ID.

create-webhook

Create a new webhook endpoint for receiving events.

update-webhook

Update the URL, events, or active state of a webhook.

delete-webhook

Permanently delete a webhook by ID.

test-webhook

Send a test event to a webhook endpoint.

billing-status

Get the current billing plan and subscription status.

billing-credits

Get the current AI credit balance and usage breakdown.

usage-summary

Get a summary of post and publishing usage for the current period.

Example: read a post

Scheduling cancellation is available through the CLI ap posts schedule <id> --cancel and SDK client.posts.unschedule(id); the v0.5.4 CLI MCP server does not advertise a cancellation tool.