photoshop_edit_smart_object_contents
Open a Smart Object's embedded file to edit its pixels non-destructively, then save and close to update the parent document.
Instructions
Open a Smart Object for editing (double-click / Edit Contents). The embedded .psb becomes the active document until you save and close it.
Users often say: edit smart object, open embedded file, double-click smart layer.
Use when: modifying pixels inside an embedded Smart Object non-destructively. Do NOT use when: replacing the whole asset — use photoshop_replace_smart_object_contents.
Returns: JSON { ok, summary, details: { parent_document, embedded_document, layer_name } }. Preconditions: Smart Object layer active or named. Side effects: active document switches to the embedded .psb — save/close it to return to the parent document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | Optional exact Smart Object layer name. 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. |