Set Layer Style
photopea_set_layer_styleAdds drop shadow, outer glow, or stroke effects to a Photopea layer by name or index. Replaces existing effects, keeps them editable, and conforms to the layer's shape for text and logos.
Instructions
Set a layer's effects: drop shadow, outer glow and/or stroke. Replaces the layer's existing effects; pass none to clear them. Effects stay editable and follow the layer's shape, which suits text and logos.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "photopea_set_layer_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stroke | No | ||
| target | No | Layer name (string) or index (number) | |
| outerGlow | No | ||
| dropShadow | No |