Resize an image or embed
gsites_resize_blockResize an image or embed section in Google Sites by index using width, aspect ratio, or height so inserted media fits the layout without stretching.
Instructions
Resize the image/embed section index by dragging its corner handle. Images inserted by gsites_add_image arrive small (about 283 px); pass width (px; the content column is about 898 px wide) and the height follows the image's own proportions. For embeds/videos pass aspect (width/height, e.g. 1.7778) or height. Never stretches: the height is always adjusted to the width that the editor actually accepted.
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": {
"index": "<index>",
"width": "<width>"
},
"name": "gsites_resize_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | 1-based section index (see gsites_list_sections) | |
| width | Yes | Target width in px (max about 898 for a full-width image) | |
| aspect | No | ||
| height | No |