Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

4.0 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "agent_context": {
            "anyOf": [
                {
                    "maxLength": 10000,
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Optional context that helps AI agents make consistent dashboard updates, such as Data Catalog metric names, data sources, tile-specific query assumptions, caveats, or editing guidance. PostHog's Data Catalog is the semantic layer. Store canonical metric definitions there, not in this field. An empty string or null means there is no agent context. Shared and exported dashboards, and organizations without AI data processing approval, omit this field. Max 10000 characters."
        },
        "body": {
            "description": "New markdown body for the text tile. Omit to leave the body unchanged. Max 4000 characters.",
            "maxLength": 4000,
            "minLength": 1,
            "type": "string"
        },
        "color": {
            "anyOf": [
                {
                    "maxLength": 400,
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "New accent color name, empty string or null to clear. Omit to leave unchanged."
        },
        "id": {
            "description": "A unique integer value identifying this dashboard.",
            "type": "number"
        },
        "layouts": {
            "description": "New grid layout per breakpoint. Omit to leave the layout unchanged.",
            "properties": {
                "sm": {
                    "description": "Layout for the standard (desktop) breakpoint. The grid is 12 columns wide.",
                    "properties": {
                        "h": {
                            "description": "Height in grid rows.",
                            "type": "number"
                        },
                        "w": {
                            "description": "Width in grid columns. The desktop grid is 12 columns wide.",
                            "type": "number"
                        },
                        "x": {
                            "description": "Column position in the dashboard grid (0-indexed).",
                            "type": "number"
                        },
                        "y": {
                            "description": "Row position in the dashboard grid (0-indexed).",
                            "type": "number"
                        }
                    },
                    "type": "object"
                },
                "xs": {
                    "description": "Layout for the small (mobile) breakpoint. The grid is 1 column wide.",
                    "properties": {
                        "h": {
                            "description": "Height in grid rows.",
                            "type": "number"
                        },
                        "w": {
                            "description": "Width in grid columns. The desktop grid is 12 columns wide.",
                            "type": "number"
                        },
                        "x": {
                            "description": "Column position in the dashboard grid (0-indexed).",
                            "type": "number"
                        },
                        "y": {
                            "description": "Row position in the dashboard grid (0-indexed).",
                            "type": "number"
                        }
                    },
                    "type": "object"
                }
            },
            "type": "object"
        },
        "tile_id": {
            "description": "ID of the dashboard tile to update. Use dashboard-get to look up tile IDs.",
            "type": "number"
        }
    },
    "required": ["id", "tile_id"],
    "type": "object"
}