Look at edgy playmate going to and fro (4)
I believe the answer is:
peep
'look' is the definition.
(peep can mean to look at something)
I don't understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for peep that I've seen before include "Look furtively or voyeuristically" , "Take quick look" , "Sly look (palindrome)" , "Large underground chamber" , "Secret look" .)