How do I reference sections and page numbers across documents in a project?

Hello @Lukas_Erhard, a related question was asked at How to cross-reference labels defined in external typst projects? - #2 by Andrew.

As was suggested, you can save the result of typst query "heading" main.typ to a file, and parse the results in your response review.

Unfortunately, I am not aware of ways to get the specific page numbers without compiling the document. In which case, you’d need either save them from the main.typ, or import main.typ in another document specifically to get page numbers.