assign_object
Assign sequences, functions, fade times, or layout positions on a grandMA2 console; destructive changes require confirm_destructive=True.
Instructions
Assign objects, functions, fades, or layout positions on the console.
SAFETY: This is a DESTRUCTIVE operation. Requires confirm_destructive=True.
Args:
mode: Assignment mode:
"assign" — assign source object to target (e.g. sequence to executor)
"function" — assign a function to an executor (e.g. Toggle, Flash)
"fade" — assign a fade time to a cue
"layout" — assign an object to a layout position
"empty" — deactivate an executor (assign empty function)
"temp_fader" — assign temp fader function to an executor
confirm_destructive: Must be True to execute (safety gate)
source_type: Source object type (for "assign" and "layout" modes)
source_id: Source object ID (for "assign" and "layout" modes)
target_type: Target object type (for "assign", "function", "empty", "temp_fader")
target_id: Target object ID
function: Function name for "function" mode (e.g. "Toggle", "Flash", "Go")
fade_time: Fade time in seconds for "fade" mode
cue_id: Cue ID for "fade" mode
sequence_id: Sequence ID for "fade" mode
layout_id: Layout ID for "layout" mode
x: X position for "layout" mode
y: Y position for "layout" mode
noconfirm: Skip console confirmation dialog
Returns:
str: JSON with command_sent, raw_response, or block info.
Examples:
- Assign sequence 1 to executor 6: mode="assign", source_type="sequence",
source_id=1, target_type="executor", target_id=6
- Assign Toggle to executor 101: mode="function", function="Toggle",
target_type="executor", target_id=101
- Assign fade 3s to cue 5: mode="fade", fade_time=3, cue_id=5
- Assign group to layout: mode="layout", source_type="group", source_id=1,
layout_id=1, x=5, y=2
- Empty executor 1: mode="empty", target_type="executor", target_id=1
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": {
"mode": "<mode>"
},
"name": "assign_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| mode | Yes | ||
| cue_id | No | ||
| function | No | ||
| fade_time | No | ||
| layout_id | No | ||
| noconfirm | No | ||
| source_id | No | ||
| target_id | No | ||
| sequence_id | No | ||
| source_type | No | ||
| target_type | No | ||
| confirm_destructive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |