set_layer_position
Set the scale and offset of a layer or group within an icon bundle to zoom or reposition the glyph.
Instructions
Set the scale (zoom) and offset of a layer or group within the .icon bundle. Use to zoom the glyph in/out or reposition it.
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": {
"bundle_path": "<bundle_path>"
},
"name": "set_layer_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor (0.05-3.0, where 1.0 = full size, 0.5 = half, 2.0 = double) | |
| target | No | Whether to set position on a layer or group | layer |
| offset_x | No | X offset in points | |
| offset_y | No | Y offset in points | |
| bundle_path | Yes | Path to .icon bundle | |
| group_index | No | Group index (0-based) | |
| layer_index | No | Layer index within the group (0-based, required for target=layer) |