km_get_macro_xml
Retrieve the full XML definition of a Keyboard Maestro macro by name or UID to inspect its structure or use as a template for creating similar macros.
Instructions
Get the full XML definition of a macro. Useful for understanding macro structure or creating similar macros.
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": {
"identifier": "<identifier>"
},
"name": "km_get_macro_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | Macro name or UID |