page_resize
Resize an SVG document page to specific width and height, keeping drawings centered or top-left and scaling backgrounds. Use for A4 or custom layouts.
Instructions
Set the page size in user units (e.g. 210 x 297 for A4 in a mm document). anchor='center' keeps the drawing centred on the new page; 'top-left'/'none' leave content where it is. Backgrounds are resized.
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": {
"width": "<width>",
"height": "<height>"
},
"name": "page_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| anchor | No | top-left | |
| doc_id | No | ||
| height | Yes | ||
| preview | No |