Planning for variable length tool, laser beam as tool