resize
Resize selected objects to an exact width or height in millimetres, or scale them by a factor, while keeping a chosen anchor corner fixed and optionally locking the aspect ratio.
Instructions
Resize to an exact visual width or height (or by a scale factor), keeping the anchor corner fixed. keep_aspect=False with both width_mm and height_mm stretches (goes through the slower extension).
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": {
"ids": "<ids>"
},
"name": "resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| each | No | ||
| show | No | ||
| scale | No | ||
| anchor | No | top-left | |
| width_mm | No | ||
| height_mm | No | ||
| keep_aspect | No | ||
| expected_revision | No |