Let $k$ be an algebraically closed field of characteristic zero. Let $S$ be a scheme of finite type over $k$. Let $\mathrm{Sch}/S$ be the category of schemes of finite type over $S$. Let $\mathcal F$ be a coherent sheaf on $S$. Consider the following functor $$ \mathbf{Dual}_{\mathcal F}:(\mathrm{Sch}/S)^{\mathrm{op}}\to \mathrm{Set},\quad \big[f:T\to S\big]\mapsto \mathrm{Hom}_{\mathcal O_T}(f^*\mathcal F,\mathcal O_T) $$ where the functor on morphisms is naturally defined.
We can recover the dual $\mathcal F^\vee:=\mathcal Hom_{\mathcal O_S}(\mathcal F,\mathcal O_S)$ from $\mathbf{Dual}_{\mathcal F}$ by looking at open subsets $[U\subset S]\in\mathrm{Sch}/S$. However more is encoded in the functor. For example, if $S=\mathbb A^1$ and $\mathcal F$ is the skyscraper sheaf at the origin, then $\mathcal F^\vee=0$ and $\mathbf{Dual}_{\mathcal F}(0\hookrightarrow \mathbb A^1)\cong k$.
I want to ask
To what extent can we recover $\mathcal F$ from $\mathbf{Dual}_{\mathcal F}$?
A more specific question that I am interested in currently is
Can we characterise $\mathcal F$ being locally free in terms of $\mathbf{Dual}_{\mathcal F}$?