attach_media
Set the exact media list on a post: reorder, remove or clear.
Replaces the post's media with media_urls in that order; an empty list
removes all of it. Appending is add_media. PDFs render only on LinkedIn
(document posts). Leaving a post without media its platform requires
still saves, with a publishBlocker in the result. updates sets up to
25 posts' lists in one call, each answered in posts.
Args: post_id: The post ID to set media on. media_urls: Media URLs from list_media (or this workspace's storage). workspace_id: Workspace ID or name. Optional if user has only one workspace. updates: Instead: [{post_id, media_urls | media_ids}], each that post's exact list.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "attach_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | The user's underlying goal for this call, in one sentence without personal details. Used for product analytics only. | |
| post_id | No | ||
| updates | No | ||
| llm_model | No | The model identifier of the calling assistant, or "unknown". Used for product analytics only. | |
| media_urls | No | ||
| workspace_id | No | ||
| conversation_id | No | Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _mcp_instructions | No | Server-issued metadata for this conversation. |