document_resize
Resize a GIMP document canvas without scaling pixels, using X/Y offsets to position the existing image within the new canvas.
Instructions
Resize the canvas without scaling pixels. offset_x/y position the old image within the new canvas.
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": {
"session_id": "<session_id>",
"width": "<width>",
"height": "<height>"
},
"name": "document_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| offset_x | No | ||
| offset_y | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||