Change material list name

Hi everyone. I’m trying to access the material list name for multiple sample line groups in order to change them, but I can’t find a node to do so.


I hope you can help me or guide me. I’m open to use Python also if it’s necessary. Thanks in advance.