km_add_trigger
Add a trigger to a Keyboard Maestro macro by providing the macro name or UID and the trigger XML.
Instructions
Add a trigger to a macro using XML.
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>",
"triggerXml": "<triggerXml>"
},
"name": "km_add_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| triggerXml | Yes | XML for the trigger (e.g. <dict><key>MacroTriggerType</key><string>TypedString</string><key>TypedString</key><string>foo</string></dict>) | |
| macroIdentifier | Yes | Macro name or UID |