media_assets_attach
Attach a file the user already uploaded in Settings > Media to a draft post, by its library id (ma_…). This is the normal way to add an image or PDF to a post: the user uploads in Settings > Media, clicks Copy ID, and gives you the id. Only valid while the content is in 'draft' state — for a scheduled post call content_cancel first, attach, then content_schedule again. If the user has a local file but no id yet, tell them to upload it at https://zevari.ai/dashboard/settings?section=media (or directly on https://zevari.ai/dashboard/content/{contentId}).
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": {
"content_id": "<content_id>",
"media_asset_id": "<media_asset_id>"
},
"name": "media_assets_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | ||
| content_id | Yes | Draft content row to attach to | |
| media_asset_id | Yes | Library asset id (ma_…) from Settings > Media 'Copy ID' |