Skip to main content

get_custom_context

Get the current input context. This can be used within a task to retrieve context metadata that was passed to the action. Context will automatically propagate to sub-actions.

def get_custom_context() -> dict[str, str]: ...

Get the current input context. This can be used within a task to retrieve context metadata that was passed to the action. Context will automatically propagate to sub-actions.

Returns​

TypeDescription
dict[str, str]Dictionary of context key-value pairs