Prepare a draft
Ask the agent to create a draft before any public action:createPosts input schema has two explicit Post variants:
- A draft requires
channeland does not acceptdestination_id. - An immediate, queued, or scheduled publication requires
destination_idand does not acceptchannel.
item_index.
One video makes a Facebook Post a Reel. Do not send a facebook member in
destination_options.
Upload an asset
OpenPMM preserves the public signed URL flow for assets:- The agent asks OpenPMM to create an asset upload.
- OpenPMM returns a short-lived signed upload URL.
- The MCP client or another local tool uploads the file bytes to that URL.
- The agent completes the upload through OpenPMM.
Connect a destination
Provider authorization stays in your browser. The agent creates a Destination connection session and gives you its authorization URL. Open the URL, approve the provider, and ask the agent to check the session.Publish a Post
Publication is irreversible. Tell the agent exactly which Post and Destination you approved.createPosts and publishPosts
before it returns the result to the MCP client. If result validation ever fails
after OpenPMM accepted one of these writes, the error includes accepted: true,
do_not_retry: true, the request and idempotency keys, the affected Post group
or IDs, and an exact safe next_action. Run that read action to reconcile the
result. Do not repeat the mutation.
