page_fit
Resize the SVG page to fit the drawing or specified IDs plus a margin. Moves all content together, preserving top-left origin and resizing backgrounds and connectors.
Instructions
Resize the page to fit the drawing (or only ids) plus margin (one number, [vertical, horizontal]
or [top, right, bottom, left], user units). All content moves together so the page keeps its 0,0
top-left; full-page background rects are resized, connectors follow.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "page_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| doc_id | No | ||
| margin | No | ||
| preview | No |