photoshop_convert_to_smart_object
Convert a selected layer into an embedded Smart Object to enable non-destructive transforms and filters. Works for raster or shape layers; returns a warning if already a Smart Object.
Instructions
Convert the active layer (or a named layer) to an embedded Smart Object.
Users often say: convert to smart object, make smart layer, embed layer.
Use when: non-destructive transforms/filters are needed on a raster or shape layer. Do NOT use when: the layer is already a Smart Object — returns success with already_smart_object. Do NOT use on background layers — unlock or duplicate first.
Returns: JSON { ok, summary, details: { layer_name, kind, already_smart_object? } }. Preconditions: active document; target layer must be selected or named. Side effects: one history step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | Optional exact layer name (recursive search). Default: active layer. | |
| 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. |