km_set_trigger_xml
Replace the XML of a specific macro trigger using the macro identifier, trigger index, and new XML. Applies the updated trigger configuration directly.
Instructions
Set/replace the XML of a specific trigger in a macro. Use km_get_trigger_xml first to understand the format.
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": {
"macroIdentifier": "<macroIdentifier>",
"triggerIndex": "<triggerIndex>",
"xml": "<xml>"
},
"name": "km_set_trigger_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | New XML for the trigger | |
| triggerIndex | Yes | Trigger index (1-based) | |
| macroIdentifier | Yes | Macro name or UID |