Get timeline buckets
get_timeline_bucketsMap your photo library month by month with asset counts to find gaps, busy periods, or navigate large collections before fetching assets. Supports album, person, tag, and favorite filters.
Instructions
Month-by-month map of the library: one bucket per month with its asset count. Use this before fetching assets — it shows in one cheap call which months hold photos and how many, ideal for finding gaps, busy periods, or navigating a large library without paging through everything. Read-only.
Args:
album_id: Only count assets in this album.
person_id: Only count assets showing this person.
tag_id: Only count assets carrying this tag.
is_favorite: If true, only count favorites.
order: 'desc' for newest month first (the default), 'asc' for oldest first.
Returns: JSON with total_buckets and a buckets array of {timeBucket, count},
newest month first unless order='asc'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | ||
| tag_id | No | ||
| album_id | No | ||
| person_id | No | ||
| is_favorite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |