photoshop_resize_image
Resample an active Photoshop document to exact pixel width and height, scaling every layer and the canvas; use when target output dimensions are specified.
Instructions
Resample the active document to a new pixel width and height (bicubic). Every layer scales and the canvas size changes.
Use when: the user gives exact output pixel dimensions for the whole document. Do NOT use when: only one layer should scale — use photoshop_scale_layer or photoshop_fit_layer_to_document. Do NOT use when: AI upscale is requested and photoshop_get_capabilities reports generative_upscale — use photoshop_generative_upscale. Do NOT use when: cropping to a region — use photoshop_crop_document.
Returns: the resulting width and height in pixels. Preconditions: active document. Side effects: resamples all layers, one history step. Reversible with photoshop_undo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | New width in pixels | |
| height | Yes | New height in pixels | |
| document_id | Yes | Photoshop document id from photoshop_get_state / photoshop_list_documents. Send null or 0 to use the active document. A positive number activates that document before the tool runs. When no document is open, a stale id does not block the call. |