Publish a post immediately
posts.publish_postUse this tool when the user explicitly asks to publish social media content immediately. It publishes the supplied b2s_posts to the connected social media account identified by client_user_network_id. This action publishes content directly and does not create a draft or schedule a post for later publication.
postFormat must be:
0 for text or link
1 for image
2 for video
Image and video posts require mediaObjects with the matching IMAGE or VIDEO type and a publicly accessible HTTP or HTTPS URL.
Check networks.properties before publishing to verify the requirements for the selected network and account type.
The response can include:
publish_url for retrieving post performance insights with posts.insights
video_token for checking video publication status with videos.status
Evaluate all returned error fields, including b2s_error_code. Do not automatically retry uncertain publishing operations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"client_user_network_id": "<client_user_network_id>",
"b2s_posts": "<b2s_posts>"
},
"name": "posts.publish_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b2s_posts | Yes | One or more posts to publish to the selected account. Use postFormat 0 for text or links, 1 for images, and 2 for videos; image and video posts require mediaObjects. | |
| client_user_network_id | Yes | Connected social media account ID returned by connections.list. All posts in b2s_posts are published to this account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |