create_heatmap_query
Save a new heatmap query as a chart and optionally add it to a dashboard. Pass the exact spec you already ran successfully with run_heatmap_query — run it first so you know it works. Adding to a dashboard also requires permission to edit dashboards. The query is saved when this runs; explain it in reason. Load the manage-dashboards, heatmap-queries skills (load_skill("manage-dashboards"), load_skill("heatmap-queries")) first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short chart title, e.g. 'Daily active players'. No time range. | |
| spec | Yes | The heatmap definition — exactly the spec you ran with run_heatmap_query. | |
| reason | Yes | Why you are making this change, in one sentence the user will read on the approval card. | |
| projectId | Yes | The project (application) id to scope this call to. Use list_projects to discover valid ids. | |
| dashboardId | No | Dashboard to add the new query to (appended at the end). Omit to save it unattached. | |
| description | No | Plain-language description of what the chart measures: the events, the aggregation, and any filter, cohort, or breakdown that changes its meaning, in one or two sentences. No time range. Always write one, even when the user did not ask for it. | |
| environment | Yes | The environment name to scope this call to (e.g. 'production'). Use list_projects to discover the names available to this token. |