set_rule
Modify dashboard rules at runtime by setting specific values for sections like KPI formatting, chart defaults, or layout settings without editing YAML files.
Instructions
Set a specific rule value in the active dashboard rules.
This allows admins to modify rules at runtime without editing YAML files. Changes persist for the current session and can be exported with export_rules().
Args: section: Rule section name. Options: "kpi" — KPI formatting (font_size, font_color, bold, row_height, max_kpis, default_format) "charts" — Chart defaults (max_charts, theme, bar_top_n, pie_max_slices) "layout" — Layout settings (width, height, background_color, card_background) "bar_chart_rules" — Bar chart enforcement "theme_rules" — Theme enforcement "map_rules" — Map chart enforcement key: The specific setting to change. Examples: "font_size", "max_charts", "theme", "background_color", "default_format" value: New value (string — will be auto-parsed to int/float/bool as needed). Examples: "28", "modern-dark", "#2D2D2D", "true", "$#,##0.00"
Returns: Confirmation of the change or error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section | Yes | ||
| key | Yes | ||
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |