LinkedIn: comment on post
linkedin_create_commentPost a comment on a LinkedIn post, optionally with one image or animated GIF. Publora has separate daily budgets for comment and reaction attempts, resetting at 00:00 UTC. Defaults are 5 each for Free/Starter and 20 each for paid Personal on the legacy app. Paid Personal on the Standard app can be exempt from the daily cap. Eligible business flows are exempt. Provider quotas and burst limits apply. Metered attempts share usage across channels, API, MCP and scheduled first comments. Sent attempts count even on failure. Use the backend response as the source of truth. If it returns LINKEDIN_DAILY_LIMIT_REACHED, wait until retryAt. LINKEDIN_COMMENTS_RESTRICTED is terminal for this target: do not retry or guess another URN; explain the restriction or choose another post if authorized.
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": {
"postedId": "<postedId>",
"platformId": "<platformId>",
"message": "<message>"
},
"name": "linkedin_create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Required comment text string (max 1250 characters). May be empty only when imageUrl is provided; use an empty string for an image-only comment. Supports mentions: @{urn:li:person:Dk968RHxiO|John Smith} or @{urn:li:organization:12345678|Company Name}. Person IDs must be raw native app-scoped member IDs returned by Publora. Use list_connections linkedinMemberId or linkedin_list_mentionables for the selected channel. The stable platformId selects a Publora channel and may differ from its current LinkedIn member ID. IDs copied from linkedin.com profile URLs are rejected. | |
| imageUrl | No | Public https URL of one image to attach to the comment. JPEG, PNG and GIF only (animated GIFs work — LinkedIn allows up to 250 frames); max 10MB and fewer than 36,152,320 pixels. Video and documents cannot be attached to LinkedIn comments. LinkedIn validates media AFTER accepting it, so an image breaching those limits still returns success but does not render — it cannot be detected here. | |
| postedId | Yes | LinkedIn post URN: urn:li:activity:<id>, urn:li:share:<id> or urn:li:ugcPost:<id>. From a LinkedIn post URL, preserve its exact activity ID as urn:li:activity:<id>; URLs are not accepted in this field. Never guess a share/ugcPost ID by replacing the activity prefix. Publora handles supported target translations. | |
| platformId | Yes | Platform connection ID, e.g. 'linkedin-XxxYyy' | |
| parentComment | No | Parent comment URN for nested replies |