generate_companion_config
Generate an importable Bitfocus Companion page config from the current grandMA2 executor layout, creating one button per assigned executor that sends Go+ commands via telnet.
Instructions
Generate a Bitfocus Companion .companionconfig page from the current MA2 executor layout (SAFE_READ).
Reads the executor page and builds a Companion-importable JSON config
with one button per assigned executor. Each button sends the appropriate
Go+ command via Companion's grandMA2 telnet module.
The output is a JSON string in Companion v4 page-export format. Save it
to a .companionconfig file and import via Companion UI → Buttons → Import.
Args:
page: MA2 executor page to export (default 1).
companion_page: Target Companion page number (default 1).
grid_columns: Companion grid width — 8 for Stream Deck XL, 5 for Stream Deck (default 8).
Returns:
str: JSON with companion_config (the importable config), executor_count, and instructions.
Examples:
- Export page 1: generate_companion_config()
- Export page 2 for Stream Deck: generate_companion_config(page=2, grid_columns=5)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_companion_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| grid_columns | No | ||
| companion_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |