DiscussionToolsPageInfo with the threaditemshtml prop exists, but is overkill for many applications -- it basically returns the full page HTML, and requires some recursion to find out about the latest comment in any given thread.
We could instead provide a more-simple API that would return just the top level headings, or approximately enough data to construct the table of contents.
This would be useful for tools that want to interact with talk pages at the level of "is there a conversation about this topic? how many replies are there? what's the link to the latest reply? etc"
Outcome:
