In Zhu's Coherent sheaves on the stack of Langlands parameters theorem 4.7.1 relates the cohomology of the moduli stack of shtukas to global sections of a certain sheaf on the stack of global Langlands parameters:

Let $H_{I,V}^i=H^iC_c\left(\mathrm{Sht}_{\Delta(\bar\eta),K},\mathrm{Sat}(V)\right)$. By [Xu20, Xu1, Xu2], the natural Galois action and the partial Frobenii action together induce a canonical $W_{F,S}^I$-action on $H_{I,V}^i$. The following statement can be regarded as a generalization of the main construction of [LZ].

Theorem 4.7.1.Assume that $k=\mathbb Q_\ell$ and regard $\mathrm{Loc}_{^cG,F,S}$ as an algebraic stack over $\mathbb Q_\ell$. Then for each $i$, there is a quasi-coherent sheaf $\mathfrak A_K^i$ on $^{cl}\mathrm{Loc}_{^cG,F,S}$, equipped with an action of $H_K$, such that for every finite dimensional representation $V$ of $(^cG)^I$, there is a natural $(H_K\times W_{F,S}^I)$-equivariant isomorphism$$ H_{I,V}^i\cong\Gamma(^{cl}\mathrm{Loc}_{^cG,F,S},(w_{F,S}V)\otimes\mathfrak A_K^i)\tag{4.26} $$where $w_{F,S}V$ is the vector bundle on $\mathrm{Loc}_{^cG,F,S}$ equipped with an action by $W_{F,S}^I$ as in Remark 2.2.7.

This is a generalization of a construction in section 6 of Lafforgue-Zhu's Décomposition au-dessus des paramètres de Langlands elliptiques (also recapitulated in remark 8.5 of V. Lafforgue's ICM survey). The idea is that a regular function of the Langlands parameter determines an endomorphism of $H_{\lbrace 0\rbrace,\mathrm{Reg}}$, a subspace of the cohomology of the moduli of shtukas with one leg, with relative position of the modification bounded by the regular representation of $\widehat{G}$ (see section 7 of 4).

Let $V$ be a representation of $\widehat{G}$, let $x\in V$, $\xi\in V^{*}$. Any function $f$ of $\widehat{G}$ can be expressed as a matrix coefficient $\langle\xi,g.x\rangle$, and for $\gamma\in\mathrm{Gal}(\overline{F}/F)$ the functions $F_{f,\gamma}:\sigma\mapsto f(\sigma(\gamma))$ are supposed to topologically generate all such functions on the stack of Langlands parameters, as $f$ and $\gamma$ vary.

Letting $\underline{V}$ be the underlying vector space of the representation $V$, the tensor product $H_{\lbrace 0\rbrace,\mathrm{Reg}}\otimes \underline{V}$ will have an action of $\mathrm{Gal}(\overline{F}/F)$, obtained from an isomorphism with $H_{\lbrace 0,1\rbrace,\mathrm{Reg}\boxtimes V}$ (see remark 8.5 of 4).

Since the data of $F_{f,\gamma}$ is the same as the data of $x$, $\xi$, and $\gamma$, we may now construct the endomorphism of $H_{\lbrace 0\rbrace,\mathrm{Reg}}$ as follows: $$H_{\lbrace 0\rbrace,\mathrm{Reg}}\xrightarrow{\mathrm{Id}\otimes x} H_{\lbrace 0\rbrace,\mathrm{Reg}}\otimes \underline{V}\xrightarrow{\gamma} H_{\lbrace 0\rbrace,\mathrm{Reg}}\otimes \underline{V}\xrightarrow{\mathrm{Id}\otimes\xi} H_{\lbrace 0\rbrace,\mathrm{Reg}}$$

This allows us to construct a sheaf of $\mathcal{O}$-modules on the stack of Langlands parameters, whose global sections is $H_{\lbrace 0\rbrace,\mathrm{Reg}}^{i}$.

In several other places in 1, Zhu also hints at the hope of finding an analogue of theorem 4.7.1 for the cohomology of Shimura varieties, following ongoing work in progress of Zhu and Emerton on an analogous stack of Langlands parameters for number fields.

How might such an analogue proceed? In the setting of Shimura varieties, as opposed to shtukas, it appears we do not have the notion of legs, or of bounding relative positions of modifications with representations of $\widehat{G}$ (I do not know whether there are any existing analogies). How might such an endomorphism be constructed?