Control of output power of tool, laser beam