set_feature_code
Create or update an OpenType feature by specifying its tag (e.g., 'liga') and AFDKO code. Control whether the feature is active, enabling direct manipulation of font features in GlyphsApp.
Instructions
Create or update an OpenType feature.
Args: feature_name: Feature tag e.g. "liga", "kern", "ss01" code: OpenType feature code (AFDKO syntax) active: Whether the feature is enabled (default True)
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": {
"feature_name": "<feature_name>",
"code": "<code>"
},
"name": "set_feature_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| active | No | ||
| feature_name | Yes |