Publish a post to a connected channel
gtm_publish_contentPublish one GTM content item to a connected social platform.
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": {
"contentId": "<contentId>"
},
"name": "gtm_publish_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Optional LinkedIn/Facebook page target id | |
| igUserId | No | Optional Instagram user id target | |
| platform | No | Optional platform override: x|linkedin|facebook|instagram|tiktok|threads | |
| contentId | Yes | GTM content id to publish | |
| _confirmed | No | Set to true only after the user has explicitly approved this exact write or credit-spending action. |