photoshop_crop_document
Crops a Photoshop document to exact pixel bounds by setting left, top, right, and bottom edges, optionally targeting a specific document ID so UI tab changes cannot redirect the edit.
Instructions
Crop the document to specified bounds
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | Top edge position in pixels | |
| left | Yes | Left edge position in pixels | |
| right | Yes | Right edge position in pixels | |
| bottom | Yes | Bottom edge position in pixels | |
| 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. |