MCPcopy
hub / github.com/thesysdev/openui / getState

Method getState

packages/lang-core/src/runtime/evaluator.ts:22–22  ·  view source on GitHub ↗

Read $variable from the store

(name: string)

Source from the content-addressed store, hash-verified

20export interface EvaluationContext {
21 /** Read $variable from the store */
22 getState(name: string): unknown;
23 /** Resolve a reference to another declaration's evaluated value */
24 resolveRef(name: string): unknown;
25 /** Extra scope for $value injection during reactive prop evaluation */

Callers 15

onClickFunction · 0.80
ShellStoreProviderFunction · 0.80
ToolActivityRendererFunction · 0.80
evaluatePropCoreFunction · 0.80
evaluateFunction · 0.80
stripReactiveAssignFunction · 0.80
ChatProviderFunction · 0.80
setupStoresFunction · 0.80
populateFunction · 0.80
expectEmptyFunction · 0.80

Calls

no outgoing calls

Tested by 4

setupStoresFunction · 0.64
populateFunction · 0.64
expectEmptyFunction · 0.64
setupStoresFunction · 0.64