list_thread_items
Fetches a Loomio thread's structured items (comments, polls, stances, outcomes) with pagination and kind filtering; returns items and next offset.
Instructions
One thread as structured items: 1 call by topic_id (2 by discussion_id or poll_id; pass exactly one). Returns items[] in thread order plus the comments, polls, stances (votes), outcomes and users they reference. The whole thread is fetched once and sliced here (limit, offset, kinds) under the max_total_chars budget; next_offset says where to continue.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | Item kinds to keep (e.g. new_comment, stance_created); 'other' = unlisted kinds. | |
| limit | No | Items after the kinds filter; default 200, max 1000. | |
| offset | No | Items to skip. Default 0. | |
| poll_id | No | Poll id or short key of a STANDALONE poll (+1 call). | |
| topic_id | No | Thread id (`topic_id` on any thread row, NOT `id`); no extra call. | |
| strip_html | No | Plain text instead of HTML bodies, reasons, outcomes; default true. | |
| discussion_id | No | Discussion id or short key (+1 call); prefer `topic_id`. | |
| body_max_chars | No | Chars per `body`; default 4000, 0 omits it, -1 = full. | |
| max_total_chars | No | Reply budget in chars; default 120000, -1 = none. See next_offset. | |
| include_reactions | No | Also return emoji `reactions`. Default false. |