inspector toggle api