Here, we present a proof-of-concept experiment where phase engineering at the nanoscale of 2D transition metal dichalcogenides (TMDC) flakes (from semiconducting 2H phase to metallic 1T phase) can be achieved by thermal annealing of a TMDC/Au/mica system. The local dewetting of Au particles and resulting tensile strain produced on the TMDC flakes, strongly bound to the Au surface through effective S-Au bonds, can induce a local structural phase transition. An important role is also played by the defects induced by the thermal annealing: when vacancies are present, the threshold strain needed to trigger the phase transition is significantly reduced. Scanning photoelectron microscopy (SPEM) was revealed to be the perfect tool to monitor the described phenomena.