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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout_tree | Yes | ||
| output_path | Yes | ||
| ascii_preview | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |