How can I create a table of contents in Capacities?

You do not need to create a table of contents manually. If you use headings, an automatic one is created for you and available in the right sidebar!