When it is time for the frontend to play the UI, we will as a part of three sections mentioned in T402617 implement functionality for reading the sidebar menus (e.g: Main Menu, Contents, Tools and Appearance, including the list items below them)
That is for example:
See more in the comments in this task: T402621
