if_filter
Apply a conditional filter to the current grandMA2 selection or command context by active state, fixture ID, or attribute such as Pan.
Instructions
Apply an If filter to the current selection or command context.
Args:
filter_type: "active" (bare 'if'), "fixture" (specific fixture), or "attribute"
fixture_id: Fixture ID (required for "fixture" and "attribute")
attribute_name: Attribute name (required for "attribute"; e.g. "Pan")
Returns:
str: JSON result with command sent
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": {
"filter_type": "<filter_type>"
},
"name": "if_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixture_id | No | ||
| filter_type | Yes | ||
| attribute_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |