Is there a way to add custom shapes via the plugin API?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tony

I would like to add a custom shape to Godot to be used in CollisionShape2d and as a colored polygon. I want to do this through a plugin API to make it easy, however, there’s not much documentation out there on the full capabilities of the API. Is this something the plugin API can do or will I have to poke around in the source?