I’ve held the staff engineer title some times and when the company did so my role was to be a sort of backup if some team could not solve something. When I was not allocated to a specific team I collaborated with other engineers on specs and higher level planning. We also worked on internal libraries and tools.