Smart Object
ps_smart_objectConvert the active layer to a Smart Object for non-destructive editing, or place an external file as a new Smart Object layer.
Instructions
Manages Smart Objects. "convert" converts the active layer to a Smart Object for non-destructive editing. "place-file" embeds an external file as a new Smart Object layer.
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_smart_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | "convert" active layer or "place-file" from disk | |
| filePath | No | Absolute file path to place (required for place-file) | |
| x | No | X position in pixels for placed file | |
| y | No | Y position in pixels for placed file |