photoshop_convert_to_smart_object
Convert the active or a named Photoshop layer into an embedded Smart Object for non-destructive transforms and filters. Requires an unlocked layer that isn't 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 | 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. |