# App settings

The settings page allows you to configure Model Train Script on your device. These are device-specific settings — for layout configuration (command station, vehicles, automation), see [Profile](/docs/manual/profile.md).

## Profiles

A [profile](/docs/manual/profile.md) contains all information for a specific layout. Model Train Script allows you to create multiple profiles representing different layouts.

From the settings page you can:

* **Select** which profile to use on this device.
* **Create** a new profile.
* **Delete** profiles you no longer need.
* **Export** a profile to share it with others.

Profiles are stored in iCloud and automatically synced across all your Apple devices.

## Automation

This toggle enables or disables the automation engine on this device. With automation disabled, event-based scripts will not trigger automatically, but manual interaction (throttle, accessories) is still fully available.

{% hint style="warning" %}
It is recommended to have automation enabled on only one of your active devices at a time. For Z21 users this is mandatory due to a protocol limitation.
{% endhint %}

## App behavior

* **Haptic feedback** — Enable or disable haptic feedback when interacting with controls like the throttle slider and buttons.
* **Background auto power off** — When enabled, Model Train Script automatically turns off track power when the app goes into the background. This is a safety feature to protect your locomotives if you accidentally switch away from the app.

## Advanced

The advanced section provides additional options:

* **AI Assistant** (Beta) — Enable the built-in AI assistant that can answer questions about your layout and execute actions through a chat interface.
* **File overview** — View and manage the files stored by the app (profile data, sounds, images).


---

# 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://modeltrainscript.gitbook.io/docs/manual/settings.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.
