document_fit_page
Fit the SVG page to drawing or selected object bounds with per-side margins, without transforming objects. Control page size and whitespace precisely.
Instructions
Fits a page to native visual drawing or selected-object bounds with explicit per-side margins. This never transforms objects.
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": {
"expectedRevision": "<expectedRevision>",
"path": "<path>",
"scope": "<scope>",
"unit": "<unit>",
"workspaceId": "<workspaceId>"
},
"name": "document_fit_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| path | Yes | ||
| unit | Yes | ||
| scope | Yes | ||
| margins | No | ||
| workspaceId | Yes | ||
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| bounds | Yes | ||
| revision | Yes | ||
| warnings | Yes | ||
| backupCreated | Yes | ||
| boundsFidelity | Yes |