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
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": {
"left": "<left>",
"top": "<top>",
"right": "<right>",
"bottom": "<bottom>"
},
"name": "photoshop_crop_document"
}
}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. |