generate_fixture_layer_xml
Creates a grandMA2 fixture layer XML file in the importexport directory for immediate import, enabling fixture layer setup without a Telnet connection.
Instructions
Generate a grandMA2 fixture layer XML file and save it to the importexport directory (DESTRUCTIVE).
The output file can be imported immediately using import_fixture_layer.
No telnet connection required — this tool writes a local file only.
Output directory:
C:\ProgramData\MA Lighting Technologies\grandma\gma2_V_3.9.60\importexport\
Each fixture dict must contain:
fixture_id (int): grandMA2 fixture ID (e.g. 111)
name (str): Display name (e.g. "Dim 1" or "Mac 700 1")
fixture_type_no (int): Fixture type number from list_fixture_types()
fixture_type_name (str): Display name of the fixture type
dmx_address (int): 1-based DMX start address within its universe
num_channels (int): Total DMX channel count for this fixture type
Args:
filename: Output filename without extension
layer_name: Layer display name shown in MA2 UI
layer_index: Layer index number (1-based) for the <Layer> XML element
fixtures: List of fixture parameter dicts (see schema above)
showfile: Show name embedded in XML <Info> element
overwrite: If True, overwrite existing file; if False, return error on conflict
confirm_destructive: Must be True to execute (writes files to console importexport directory)
Returns:
str: JSON with file_path, filename, fixture_count, layer_index, layer_name
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": {
"filename": "<filename>",
"layer_name": "<layer_name>",
"layer_index": "<layer_index>",
"fixtures": "<fixtures>"
},
"name": "generate_fixture_layer_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| fixtures | Yes | ||
| showfile | No | grandma2 | |
| overwrite | No | ||
| layer_name | Yes | ||
| layer_index | Yes | ||
| confirm_destructive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |