Retrieve Svg code

Hi,

I’m wondering if there is a smarter way to get the code for an SVG by clicking on it.
I searched through Figma’s helper functions but couldn’t find anything, so I’ve been trying to recreate the SVG code from the information I gather from the selected vector node object.

I’m wondering if there are smarter alternatives that I might have missed?

Thank you

Thank you.