How to access the ID of a collapseTool in a grid?

I’m trying to access the ID of the collapseTool in a grid, but I’m not having any luck. Here’s a pic of my console when I simply console out the grid.


enter image description here

and I would like to get the Id tool-1782

I’ve tried:


but it prints


Can anyone tell me I’m missing please? Thank you in advance!