Lagrangian field theory in terms of Green’s functions