photoshop_fit_layer_to_document
Scale the active layer to fit the document canvas while preserving aspect ratio. Choose to fill the entire canvas or fit within it, preventing distortion.
Instructions
Scale the active layer to fit the document canvas while maintaining aspect ratio
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | No | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. | |
| fillDocument | No | If true, fills entire canvas (may crop). If false, fits within canvas (may have margins). Default: false |