create_post
Create or schedule a LinkedIn post, optionally with a media attachment. For a single image pass a urn:li:digitalmediaAsset:… URN; for multiple images pass a urn:li:fsd_multiPhoto:… URN from create_multi_photo. Set scheduled_at (Unix ms) to schedule; omit it to publish immediately. Publishes now or schedules (scheduled_time); counts against the daily posts quota. Show the user the full text before calling.
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": {
"account_id": "<account_id>",
"text": "<text>"
},
"name": "create_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Plain text to send or post. | |
| page_id | No | Act as this company page instead of the member: page_id (or vanity name) from list_managed_pages. The account must be an admin of the page with a role that allows the action. Omit to act as the member. | |
| media_urn | No | Optional media URN to attach. | |
| account_id | Yes | Reach id of the LinkedIn account to act on, from list_accounts. | |
| visibility | No | 'ANYONE' or 'CONNECTIONS_ONLY'. | ANYONE |
| scheduled_at | No | Scheduled publish time in Unix milliseconds. Omit to publish now. | |
| idempotency_key | No | Optional. A key you choose (a UUID is fine) that names this exact call. If you retry with the same key and the same arguments, the first call's result is returned and nothing is done twice on LinkedIn. Reusing a key with different arguments is refused. Keys expire after 24 hours. | |
| allowed_commenters_scope | No | 'ALL' or 'CONNECTIONS_ONLY'. | ALL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_key | No | Identifier of the created or scheduled post |