add_gallery
Create image galleries with grid layouts for WordPress pages using Elementor. Specify columns, add images with captions, and enable lightbox functionality.
Instructions
Add an image gallery section with grid layout
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": {
"page_id": "<page_id>",
"images": "<images>"
},
"name": "add_gallery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Page ID | |
| heading | No | Section heading (e.g., "Our Gallery") | |
| images | Yes | Array of images for the gallery | |
| columns | No | Number of columns (2, 3, or 4). Default: 3 | |
| lightbox | No | Enable lightbox on click (default: true) |