1.
to consider an idea or a plan, but not very seriously and not for a long time
SYN flirt with :
I did briefly toy with the idea of living in France.
2.
to play with sth and move it around carelessly or without thinking :
He kept toying nervously with his pen.
She hardly ate a thing, just toyed with a piece of cheese on her plate.
( figurative )