# Context Variables (scenario parameters)

In a manner similar to traditional programming languages, the platform supports context (local) *variables*. These variables are designed for use within specific scenarios, and their scope is limited to the execution of those scenarios. In all other cases, they are assigned a *null* value.

## Adding context parameters in START step settings

You can setup context variables when creating a scenario ([START step](/scenarios/editing-scenarios/system-steps/start-step.md) settings, **Parameters** tab):

![](/files/-M6jdA_SNBwgpjJ4b1x0)

## Using context variables in scenarios

You can both *write* and *read* context variables in your scenario as if they were regular object fields. You can invoke this variable typing or choosing `{{ContextVar.variableName}}`

## Setting up context parameters values in Link scenario step

You can set the context variables values in [Link scenario](/scenarios/editing-scenarios/system-steps/link-scenario-step.md) step:

![](/files/-MDpeGtuPDhFyGbggq9_)

## Testing blocks with context variables

{% hint style="warning" %}
As mentioned before, a variable receives value only during the scenario run. Therefore, when testing blocks via [testing step](/scenarios/testing-and-debugging.md), if set, the current value is returned.
{% endhint %}

![](/files/-M6jdEKzJXB71xyu0AXs)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://readme.directual.com/scenarios/using-variables/context-variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
