The tardis, now doubt, will come to him to be repaired regardless of his current location or state of digestion.
I suspect the tardis will appear in the worm, and he will convince the good doctor that the tools are in his previous universe and time, and thus escape worm digestion.
The next frame should show the worm regurgitating the house in perfect condition, and going, "Oh bother, I was merely bringing him to my place for a spot of real tea."
-Adam