attach_gallery_media
Attach existing media to a gallery item with a role and sort order. Links cover, gallery, detail, or hero video media for CMS content management.
Instructions
Attach an existing media row to a gallery item with role + sort_order. role defaults to gallery.
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": {
"item_id": "<item_id>",
"media_id": "<media_id>"
},
"name": "attach_gallery_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Role (default 'gallery') | |
| item_id | Yes | ||
| media_id | Yes | ||
| sort_order | No |