I have recently looked at the Wightman approach to axiomatically define a continuum QFT, using these notes [1] in particular. I am confused about where distributions appear in both the classical and quantum setting.
In a classical setting, the dynamics of the system is governed by the action, which is a map from the functional space to the real numbers, that is the action takes functions as its input.
Now if we go to the Wightman definition of the path integral. We say that the path integral can be rigorously defined as the integral over the Schwartz distribution space, $S'_\mathbb{R}, $ (space of tempered distributions) with the associated Borel measure
$$\mathcal{Z}[J] = \int _{S'_\mathbb{R}} e^{i \phi(J)} d \mu_C(\phi).$$ A physicist might write the gaussian measure, $d \mu_C(\phi)$ as $e^{-S[\phi]} \mathcal{D}\phi$ where $S[\phi]$ is the classical action we see in the classical version of the theory. In particular, the action here is the free scalar (euclidean) field action
$$S[\phi] = \int _{\mathbb{R}^4} d^4x \space\frac{1}{2}(\partial \phi)^2 + \frac{1}{2}m^2\phi^2.$$
This confuses me because the action is a functional, meaning it takes functions as its input, where as $S[\phi] $ for $\phi \in S'_\mathbb{R}$ doesn't mean anything.
I think the solution to my confusion lies somewhere in the fact that a subset of Schwartz distributions as can written in terms of any integral of a smooth function, for example $ \phi(f) = \int_ {\mathbb{R}^4} d^4x \space \phi(x)f(x)$ so when we write objects like $ \phi(x)$, we really mean $ \phi(f)$ for all $f \in S_\mathbb{R}$ and writing $ \phi(x)$ is just abuse of notation. If this is the case, I am not sure what the classical action looks like as a function of distributions (since the multiplication of distributions is not well defined) also I am not sure if the objects we deal with in classical field theory are fields or really distributions.
[1] https://www-m5.ma.tum.de/foswiki/pub/M5/Allgemeines/WojciechDybalski/Notes-QFT41.pdf