km_get_action_xml
Retrieve the XML definition of a specific action in a Keyboard Maestro macro by providing the macro name or UID and the 1-based action index.
Instructions
Get the XML definition of a specific action in a macro. Actions are 1-indexed.
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>",
"actionIndex": "<actionIndex>"
},
"name": "km_get_action_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actionIndex | Yes | Action index (1-based) | |
| macroIdentifier | Yes | Macro name or UID |