one direction is the offer-to-cook-tea-for-everyone at the friend's house tactic.
Another is let's-all-go-to-our-house-and-have-tea-there
another is let's-all-go-to-the-cafe-down-the-road (after which you all weave bye bye cheerfully)
another is where you just leave the topic alone for 15 mins, and wait for the next obvious break in the game before suggesting going to do something splendid
promising to come back tomorrow/next week, or to have the friends to visit?
When I am the hostess, I often find that if I can offer the visiting child to borrow the toy they are playing with, or another one they love, or a heap of books they like, or some dressing up clothes or something, that can really help. Obviously it as to be done without annoying the children who live in the house... but it also is then lovely when those things come back in a week or two - it's like Christmas, even though the objects haven't been missed!
sometimes I make sure I have food packed so we can eat when hungry without outstaying our welcome. And I definitely have friends who do that every time when they come to visit us.
This isn't exhaustive, of course, but there might be a gem for you in it.