design_set_pattern_shading
Set value-based shading on a patterns:fill layer to vary opacity, density, or weight spatially using uniform, linear, radial, noise, or algorithm-driven functions.
Instructions
Set value-based shading on a patterns:fill layer. Shading varies opacity/density/weight spatially using uniform, linear, radial, noise, or algorithm-driven functions.
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": {
"layerId": "<layerId>",
"shading": "<shading>"
},
"name": "design_set_pattern_shading"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| affects | No | What the shading modulates. Default: ["density"]. | |
| layerId | Yes | The ID of a patterns:fill layer. | |
| shading | Yes | Shading function. Examples: {"type":"uniform"}, {"type":"linear","angle":0,"range":[0.2,1.0]}, {"type":"radial","cx":0.5,"cy":0.5,"range":[0.1,1.0]}, {"type":"noise","seed":42,"scale":0.02,"range":[0.3,1.0]}, {"type":"algorithm","channel":"values","range":[0.0,1.0]} |