Meaning: to say something jokingly
Example: The wife told her husband that she was leaving him because he never took out the garbage. When he looked at her in surprise she said, I was just pulling your chain.
See this Idiom in a story: Santa's Elves Get a Well Deserved Vacation, Holiday Season