affinity_set_document_settings
Updates a document's units, DPI, pixel width/height, and background transparency, then returns the revised settings. Use session_uuid to target a specific document; otherwise it applies to the current one.
Instructions
Change a document's setup and return the updated settings. Supports units, dpi, pixel width/height, and transparent_background. Changing dpi, size, or transparency rewrites document setup; other settings are preserved, but background transparency resets to opaque unless transparent_background is given. Defaults to the current document; pass session_uuid to target a specific one.
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": "affinity_set_document_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| units | No | ||
| session_uuid | No | ||
| width_pixels | No | ||
| height_pixels | No | ||
| transparent_background | No |