What is the function of the raphide crystal?

There is no definitive information about the functions of raphide crystals but it is highly suggested that they serve as a defense mechanism against herbivores. These crystals are commonly found inside a chamber in plant cells that are called idioblasts.