ps_smartObject
Convert Photoshop layers to smart objects, edit or export their contents, replace contents with a file, or rasterize them within a chosen document.
Instructions
Photoshop: smart objects — convert layer to smart object, edit contents (opens it), replace contents with a file, export contents to a file, rasterize.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "ps_smartObject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| layer | No | Layer name (searched in groups too); omit for the active layer. | |
| action | Yes | ||
| document | No | Document name; omit for the active document. |