Publish a LinkedIn post
post_publishPublishes one LinkedIn post as the signed-in member after an approval dialog, returning its URN and URL and logging it locally; supports text with an optional image or PDF.
Instructions
Publishes one post to LinkedIn as the signed-in member: text alone, or text with one image or one PDF document. The pre-publish gates, when any are set, run first and can block the post. The trusted helper then shows the member the post in a dialog and sends it only on a yes. Returns the post URN and its URL, and appends one line to the local ledger. With LINKEN_DRY_RUN=1 it sends nothing and returns the requests it would send, in order. It does not schedule, edit or delete posts, mention people or companies, post to a company page, or upload video.
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": {
"text": "<text>"
},
"name": "post_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The post text, as plain text. Line breaks are kept. A word that starts with # becomes a hashtag. Every other character LinkedIn reserves is escaped, so it shows as typed. | |
| media | No | Absolute path to one file to attach: .pdf, .png, .jpg, .jpeg or .gif. | |
| title | No | The document title LinkedIn shows on the post. Required when media is a PDF; not used for an image. | |
| visibility | No | Who can see the post: PUBLIC (anyone) or CONNECTIONS (1st-degree connections only). | PUBLIC |