> For the complete documentation index, see [llms.txt](https://docs.rewst.help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rewst.help/documentation/automations/the-live-editor.md).

# The Live Editor

## What is the Live Editor?

Rewst Classic's *Live Editor* is an interactive environment in the Rewst Classic platform where you can test and debug workflows, Jinja, PowerShell, and variables in real time. Instead of building blindly and hoping it works later, check your code and see if it delivers your desired result.

* Run individual steps or entire branches of a workflow and see how things behave.
* Inspect the actual data moving through a workflow, including step outputs, parsed inputs, and runtime values.
* Test your Jinja expressions directly on real data without deploying the full workflow.

## Use the Live Editor in Rewst

Access the Live Editor by navigating to **Automations > Live Editor** in the left side menu of your Rewst  Classic platform.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FsmH6GPjKfxh2SzLFbJVq%2FScreenshot%202026-03-05%20at%204.10.41%E2%80%AFPM.png?alt=media&amp;token=9c37a469-17dd-4bfa-b43f-96891f430184" alt="Screenshot of the Templates list view in the Rewst Automations section, showing a dark-themed interface with a left navigation menu, a top search bar and Create Template button, and a table of templates with names, descriptions, dates, attributes, and action icons.  Alt text: Screenshot of the Live Editor in the Rewst Automations section, showing a dark-themed interface with a left navigation menu and three side-by-side panels for Context, Editor (with a “Hello World” example), and Result for testing and rendering code output."><figcaption></figcaption></figure>

The **Context** panel in the Live Editor is where you provide mock or sample data that your Jinja template can reference during rendering. Since the Live Editor runs outside of an actual workflow execution, there's no real `CTX`, `TASKS`, or other runtime data available. The Context panel lets you simulate that data so you can test your templates realistically. Variables you define in the Context panel are accessed in your template using the `CTX.` prefix. If you add `"username": "Alice"` in the context, your template should reference it as `{{ CTX.username }}`, not just `{{ username }}`.

Click the **switch** button in the top right of your **Editor** panel to switch between the two available languages in the editor. The name of the language currently in use for the editor will display in blue on the button.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FW72jOf6PYlYegkrgb8nJ%2FScreenshot%202025-04-17%20at%2011.04.07%E2%80%AFAM.png?alt=media&amp;token=bbc0e942-3839-44e6-a887-2781b1408977" alt=""><figcaption></figcaption></figure>

Click **Render** to display your code's result in the **Result** pane.

Click **Share** to create a link to share your context and code in the editor, to be opened by another individual later. This is particularly helpful for sending to coworkers or Rewst support staff.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FeXs5xLbxIMoMQDEGqOs8%2FScreenshot%202025-04-17%20at%2011.06.02%E2%80%AFAM.png?alt=media&amp;token=36b3e0d9-7525-4960-9326-5a53dc01e506" alt=""><figcaption></figcaption></figure>

## Live Editor shortcuts

* Access the Live Editor in other menus in Rewst Classic, in any fields where you see the <img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FjQhhVbtf5WyNQdnLLdJs%2Fjinja-burger.png?alt=media&amp;token=61410863-a42c-467d-bbdc-fee5c705c278" alt="" data-size="line">button.
* Press `F1` within the editor to see menu and shortcut options
* Press `Ctrl + Space` to get the initial root options
* Add `|` to the end of your variables to access [Jinja filters](https://docs.rewst.help/documentation/jinja/list-of-jinja-filters). e.g.: `{{ ORG.ATTRIBUTES.id|default('test default string') }}`

{% hint style="info" %}
For more on how to use Jinja in Rewst, see our [Jinja documentation here](https://docs.rewst.help/documentation/jinja), and sign up for courses in [Cluck University](https://learn.rewst.io/).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rewst.help/documentation/automations/the-live-editor.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
