generate_layout_json
Generate and save a dashboard layout file.
Instructions
Generate and save a dashboard layout file.
Recommended workflow:
Call list_worksheets to get available worksheet names
Design the layout with the user (show ASCII preview for confirmation)
Call this tool to save the layout as a JSON or YAML file
Call add_dashboard with layout=<this_file_path>
The layout_tree uses the declarative container DSL:
{"type": "container", "direction": "vertical"|"horizontal", "children": [...]}
{"type": "worksheet", "name": "<worksheet_name>"}
Use "fixed_size" (int, pixels) for KPI rows and filter sidebars
Use "weight" (int, relative) for main analytical areas
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": {
"output_path": "<output_path>",
"layout_tree": "<layout_tree>",
"ascii_preview": "<ascii_preview>"
},
"name": "generate_layout_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout_tree | Yes | ||
| output_path | Yes | ||
| ascii_preview | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |