export_objects
Exports grandMA2 show-file objects to disk as XML, CSV, or HTML, routing each object type to its correct data subfolder. Requires explicit destructive confirmation before writing.
Instructions
Export objects from the show file to disk (DESTRUCTIVE — writes files).
Files are written to the grandMA2 data directory. MA2 routes each type
to its own subfolder automatically:
- Macro → macros/ Effect → effects/ Plugin → plugins/
- MAtricks → matricks/ Mask → masks/
- All others → importexport/
On this system: C:\ProgramData\MA Lighting Technologies\grandma\gma2_V_3.9.60\
Supported object types (19 validated):
group, preset, macro, effect, sequence, view, page, camera, layout,
form, plugin, matricks, mask, image, executor, timecode, userprofile,
channel, screen
Preset syntax for object_id:
- Single preset: "1.3" (type 1=Dimmer, 2=Position, 3=Gobo, 4=Color,
5=Beam, 6=Focus, 7=Control, 8=Shapers, 9=Video)
- All of a type: "1" (exports all dimmer presets)
- Range: "1 thru 5"
Args:
object_type: Object type (case-insensitive)
object_id: ID, preset ref ("1.3"), range ("1 thru 5"), or name (UserProfile)
filename: Output filename — no extension, no path needed
style: "csv" or "html" — default is xml
overwrite: Replace existing file without prompting
confirm_destructive: Must be True to execute
Returns:
str: JSON with command_sent, raw_response, risk_tier, data_path
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": {
"object_type": "<object_type>",
"object_id": "<object_id>",
"filename": "<filename>"
},
"name": "export_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | ||
| filename | Yes | ||
| object_id | Yes | ||
| overwrite | No | ||
| object_type | Yes | ||
| confirm_destructive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |