photoshop_select_layer_by_name
Select the active layer by its exact name, including layers inside groups, to apply transforms or property edits. Returns layer info and changes the active layer.
Instructions
Select the active layer by exact name, including layers inside groups.
Use when: a transform or property tool must target a named layer (photoshop_scale_layer, etc.). Do NOT use when: the layer is already active — check photoshop_get_state first.
Returns: selected, layerName, kind, bounds (best-effort), context. First depth-first name match wins when duplicate names exist in different groups. Preconditions: active document. Side effects: changes active layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact layer name (case-sensitive) | |
| 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. |