'both ways' is the definition.
I don't understand how the remainder of the clue works.
Can you help me to learn more?
(Other definitions for toot that I've seen before include
"Short sounding of horn", "Parp", "honk horn", "Do it on a flute", "Briefly blow".)