slice_descendants_breakdown
Recursively expand and aggregate descendant slices under given root slice IDs, grouped by depth and name with count, total, and max duration. Ideal for drilling into long tasks after identifying a slice ID.
Instructions
Recursive child-slice expansion under known slice.id roots, aggregated as a bounded breakdown (slice_count / total_ms / max_ms per (depth, name) group). Use to drill into a long task — after chrome_main_thread_hotspots or execute_sql returns a slice id — without hand-writing WITH RECURSIVE CTEs over slice.parent_id. Required: slice_ids. Optional bounds: min_dur_ms, max_depth, limit, include_args, max_string_len. The response echoes summary_scope, applied_filters, and missing_root_ids (root slice ids not present in the loaded trace — usually stale ids). Returned columns: root_id, depth, name, slice_count, total_ms, max_ms, first_ts_ns (raw nanoseconds, not ms), example_slice_id (longest-duration descendant per group), and optionally example_args.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_args | No | Include an example args summary for one representative slice per group. | |
| limit | No | Optional max rows to return. Defaults to 100 and is capped at 5000. Accepts both numbers and numeric strings. | |
| max_depth | No | Optional maximum descendant depth. Defaults to 8. Must be > 0 when set; accepts both numbers and numeric strings. | |
| max_string_len | No | Optional per-string-cell character cap applied to returned rows only. Unset preserves full strings for precision; accepts both numbers and numeric strings. Must be > 0 when set. | |
| min_dur_ms | No | Optional descendant minimum duration in milliseconds. Defaults to 1 ms. Must be finite and non-negative; accepts both numbers and numeric strings. | |
| slice_ids | Yes | Root slice ids to expand. The root slices themselves are omitted from the summary; returned rows aggregate matching descendants under each root. Accepts numbers or numeric strings. |