Optical waveguide tools for microsystems