It is an important project to use metasurfaces to extend the manipulation of light field by on-chip photonic integrated circuits to the free-space. In this paper, an waveguide mode-driven embedded metasurface is designed by using the propagation phase method. The phase distribution of the metasurface satisfies both the focusing of the fundamental wave and second-harmonic. On this basis, a phase-change material is chosen to be embedded in waveguide. Combined with its refractive index difference in different phase states, focusing of the fundamental wave and second-harmonic is achieved in two phase states, respectively, through the simulation method. When the fundamental wave (or second-harmonic) achieves high quality focusing, the components of the second-harmonic (or fundamental wave) at the focus are suppressed to a large extent, which is more conducive to the subsequent complete filtering. Furthermore, the efficiencies at the fundamental wave and second-harmonic are increased by 2.2 and 3.7 times by embedding another metasurface at the bottom of the waveguide layer which is exactly the same as that at the top and shift it laterally by half a period. This study provides a new alternative approach for the linear and nonlinear multifunctional control of guided mode-driven metasurfaces.