batch_label
Labels multiple grandMA2 objects in one call from a JSON array of ID/name pairs, avoiding repeated single-object label calls; destructive confirmation required.
Instructions
Label multiple objects in a single call (DESTRUCTIVE).
Instead of calling label_or_appearance once per object, batch_label applies
names to an entire list. Accepts a JSON array of {id, name} pairs.
Args:
object_type: Object type (e.g. "group", "sequence", "macro", "preset")
items: JSON array string, e.g. '[{"id": 1, "name": "Front Wash"}, {"id": 2, "name": "Back Light"}]'
confirm_destructive: Must be True to execute (DESTRUCTIVE operation)
Returns:
str: JSON with labels_applied, commands, errors, risk_tier.
Examples:
- Label groups 1-3: object_type="group", items='[{"id":1,"name":"Front"},{"id":2,"name":"Back"},{"id":3,"name":"Side"}]'
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": {
"object_type": "<object_type>",
"items": "<items>"
},
"name": "batch_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| object_type | Yes | ||
| confirm_destructive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |