photoshop_edit_smart_object_contents
Open a Smart Object's embedded contents to edit pixels non-destructively. The embedded .psb becomes active until you save and close it.
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 | 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. |