photoshop_rotate_layer
Rotate a single Photoshop layer around its center by a chosen angle without changing the document canvas. Use it when only one layer needs rotation, not scaling, moving, or full-canvas reorientation.
Instructions
Rotate the active layer by degrees (positive is clockwise) around its center. The document canvas does not rotate.
Use when: one layer needs a rotation. Do NOT use when: the layer should scale or move in pixels — use photoshop_scale_layer or photoshop_move_layer. Do NOT use when: the whole canvas orientation should change — this tool does not rotate the document.
Returns: the degrees applied. Preconditions: active document and active layer. Side effects: transforms that layer, one history step. A second call adds another rotation. Reversible with photoshop_undo.
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": {
"degrees": "<degrees>",
"document_id": "<document_id>"
},
"name": "photoshop_rotate_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| degrees | Yes | Rotation angle in degrees (positive = clockwise, negative = counter-clockwise) | |
| 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. |