set_macro_line
Set the command for a specific line in a macro on a grandMA2 console. Define the macro number, line number, and command string to update macro behavior.
Instructions
Set the command for a specific line within a macro.
Args:
macro_id: Macro number
line: Line number within the macro
command: The command string for that line (e.g., "SetVar $song='Opening+Childhood'")
pool: Macro pool number (default: 1)
Returns:
str: Operation result message
Examples:
- Set macro 101 line 1 to "SetVar $song='Opening+Childhood'"
- Set macro 50 line 3 in pool 2 to "Go Sequence 5"
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": {
"macro_id": "<macro_id>",
"line": "<line>",
"command": "<command>"
},
"name": "set_macro_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macro_id | Yes | ||
| line | Yes | ||
| command | Yes | ||
| pool | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |