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.

console.log(grid);

enter image description here

and I would like to get the Id tool-1782

I’ve tried:

 console.log(grid.collapseTool) 

but it prints

undefined

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