# getRuntimeMode

Returns the runtime mode of Squirrel.&#x20;

<table><thead><tr><th width="202">RuntimeMode</th><th>Description</th></tr></thead><tbody><tr><td>design</td><td>Is in Design mode in the designer</td></tr><tr><td>interactive</td><td>Is in Debug mode in the designer</td></tr><tr><td>preview</td><td>Is in Preview mode in the designer</td></tr><tr><td>live</td><td>Is in Runtime (i.e. an exported project being run in the browser)</td></tr></tbody></table>

{% hint style="info" %}
Support for this method was added on release 1.12.x
{% endhint %}


---

# 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://learn.squirrel365.io/squirrel-addon-documentation/squirrel-helper-library/javascript/methods/getruntimemode.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.
