navigate_to_trends
Deep link to the Trends report — spot patterns in ONE category's spending or earning over time (or all categories combined when category_id is omitted). Plots the window as equal time buckets (as many as the range needs): per-period actual bars, the budgeted amount overlaid, an average line, and a rollover-balance band; shows income OR expense (set by type). Pick this for over-time / comparison / history asks: 'compare my groceries spend over the past three months', 'is my power bill creeping up', 'what do I spend on X on average', 'am I always over budget on X', 'how has X changed'. To compare two separate periods (e.g. this August vs last August) use one custom window spanning both with monthly buckets. For a one-period breakdown across MANY categories — or a single category's one-period TOTAL (pass only_category_ids) — use navigate_to_income_expense; to manage all budgets for one period use navigate_to_budget. Resolve a category name to its ID with list_categories first; the date range is the window analysed and period_type/period_quantity set each bucket's size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Which analysis to show — the chart covers income OR expense, not both at once. | |
| roll_up | No | Fold the focused category's subcategories into it. | |
| end_date | No | YYYY-MM-DD. | |
| start_date | No | YYYY-MM-DD. Required when date_range_key is 'custom'. | |
| category_id | No | Category to analyse over time. Omit for an all-categories-combined trend. If this category has roll-up on, its subcategories fold in. | |
| period_type | No | The granularity of each bucket. Combine with period_quantity for the bucket width (e.g. months+1 = monthly). 'event' buckets by the category's own budget period (single-category only). | |
| uncategorised | No | Analyse the Uncategorised bucket instead. Mutually exclusive with category_id. | |
| date_range_key | No | The overall window that gets sliced into buckets: a named range (e.g. this_year, last_quarter) or 'custom'. | |
| period_quantity | No | The width of each bucket, as a multiple of period_type — NOT the number of buckets. E.g. period_type=months with period_quantity=1 gives monthly buckets; period_quantity=3 gives quarterly buckets. Defaults to 1. The number of buckets is derived from the date range ÷ bucket width, and the chart renders as many as needed. |