attachmentsAPI call can be used to get all attachments of your SL bot (including HUD attachments). The command supports several useful options to filter return values. The result of attachment call can be used by attachment_touch.

The next API update will contain two commands to wear and take off clothes, it is ready to get published, we are testing these calls now.