[get-context]
get-context is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Returns a stack value or context object from the current execution context.
- Value (
context-name), required: Context name to retrieve - Returns: Resolves to the requested stack value or context object
- Scope: requires
context- Requires a named context created by [context] using the same input value
Guide: How to use [get-context]
JSON declaration
This is the complete declaration of get-context, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "get-context",
"description": "Returns a stack value or context object from the current execution context",
"signature": {
"input": {
"kind": "context-name",
"description": "Context name to retrieve",
"required": true,
"mode": "ValueOrExpression"
},
"scope": {
"requires": "context",
"description": "Requires a named context created by [context] using the same input value"
},
"output": {
"mode": "Value",
"kind": "context-value",
"description": "Resolves to the requested stack value or context object"
}
}
}
← format |
all core slots | get-count → |