km_add_set_variable
Set a variable to a specified text value within a Keyboard Maestro macro by providing the macro identifier, variable name, and value.
Instructions
Add an action to set a variable to a text value.
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>",
"variable": "<variable>",
"value": "<value>"
},
"name": "km_add_set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Value to set the variable to | |
| variable | Yes | Variable name to set | |
| macroIdentifier | Yes | Macro name or UID |