Add a fixture-type file to the user library
gma3_patch_library_addAdds a GDTF or grandMA3 fixture-type XML file to the console's user fixture library so patch import can use it, validating name, size and structure before writing.
Instructions
Put a fixture-type file (GDTF .gdtf, or a grandMA3 fixture-type .xml) into the console's user fixture library, so gma3_patch_import can import it. The bytes go over the bridge: the client need not be on the console's machine. Give the file as content_base64 (its bytes, base64) with file_name, or as path (a file on the MCP server's host; file_name defaults to its name). file_name must be manufacturer@model[@revision].gdtf or .xml, the extension in lower case. Pre-checks (nothing written on failure): the name; at most 8 MiB; a .gdtf is a zip whose description.xml has a FixtureType (its name, manufacturer and DMX modes are reported); an .xml has a FixtureType element; the name is not in the user library yet unless replace: true, and in no other library (Import Library could not tell them apart). The file is written next to its target and moved into place only when its size and CRC-32 match. Read-back: the file's size and CRC-32 on the console, and gma3_patch_library lists it under source user. The show is not changed. Needs bridge 0.38.0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A file on the MCP server's host to send instead of content_base64. | |
| replace | No | Overwrite a file of the same name in the user library (default false: refuse). | |
| file_name | No | Library file name, e.g. "SHEHDS@180W_Beam@2026-10-20.gdtf". Required with content_base64; defaults to path's file name. | |
| content_base64 | No | The file's bytes, base64. Give this or path. |