Buying an iPhone tax-free in Tokyo is doable, but there are a couple of catches worth knowing before you plan a shopping trip around it.
First, the tax-free rule itself: Japan's consumption tax refund applies to visitors on a temporary stay (the "temporary visitor" entry status), and you'll need your passport with that stamp or sticker. The standard exemption applies to purchases of 5,000 yen or more before tax at a single store on the same day. Apple's own stores in Japan do participate in the tax-free program, but you should confirm at the specific store when you arrive, since not every retailer handles it the same way and the process can change.
The bigger practical issue is the iPhone itself. Apple's Japan pricing and stock vary, and the tax-free discount is roughly 10 percent, which is meaningful but not always the bargain people expect once you factor in exchange rates and the fact that Japanese models can differ from what you'd get at home. Check the model number and band support for your home carrier before buying, and remember that warranty service is generally tied to the country of purchase, so a repair back home may not be covered the same way.
Also keep in mind that the tax-free purchase is meant for goods you take out of the country, and the receipt gets stapled into your passport. If you're buying several devices, staff may ask questions, and there are limits on how much you can reasonably claim as personal use. My advice is to visit an Apple Store or a major electronics retailer in person, ask directly about tax-free eligibility for the exact model, and compare the final price against what you'd pay at home before committing.