edit_post
Modify existing LinkedIn posts by updating text content or replacing images through the LinkedIn API. Enables content refinement and corrections after publication.
Instructions
Edit/update an existing LinkedIn post using the Official API.
Requires "Share on LinkedIn" product enabled in your LinkedIn Developer app.
Args: post_urn: The URN of the post to edit (e.g., "urn:li:share:123456") text: New text content for the post (optional, max 3000 characters) image_path: Path to new image file to replace existing media (optional) alt_text: Alt text for the new image (optional)
Returns: Success status with updated fields information.
Note: At least one of 'text' or 'image_path' must be provided. This uses LinkedIn's PARTIAL_UPDATE method to update only specified fields.
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": {
"post_urn": "<post_urn>"
},
"name": "edit_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_urn | Yes | ||
| text | No | ||
| image_path | No | ||
| alt_text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||