If the window is open you can use InventoryManager.GetBagByInventoryBagId Retainer_Page1 Retainer_Page2 Retainer_Page3 Retainer_Page4 Retainer_Page5 Retainer_Page6 Retainer_Page7
that's working, thanks the page numbers are off (that or the pages don't match what the client displays). It's not a big deal though since I can look up all of the bagslots.