You have many options with today's internet so Thank you for choosing JustAnswer.com.
Click on the links for the instructions on the sun roof.
P.S. I take great pride in providing quality responses for the people I assist. If you believe that I have been professional and helpful in my assistance please don't forget to give a positive rating for this exchange and click the accept button. If your feel my answer does not address your issues, please just tell me and I will opt out, allowing another technician to address your situation. My Goal is to make this experience one you appreciate.
You are going to find that the cables will have to be replaced the plastic pieces that push the roof in to position are broke. They are part of the cable system. In order to do this the entire assembly has to be removed from the roof and disassembled. If you are not interested in an operational sunroof you may be able to force the roof up to close then bock it up with some blocks of wood.
The only way to fix this junk sunroof system is to replace the cables, tracks and motor.
I don't know of anyone on the internet other then Toyota. email@example.com can get you everything that you need. I would not use anything but Toyota parts. They are more expensive but you get what you pay for.