Read SimVar
msfs_get_simvarRead a Microsoft Flight Simulator SimVar value by name and unit, returning the value with the actual unit used. Fetches specific aircraft or engine data directly.
Instructions
Read a SimVar value by name, in the requested unit.
Returns the value together with the unit it was actually read in. Use msfs_search_simvars first if you are unsure of the exact name or units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | SimVar name, e.g. 'PLANE_ALTITUDE' or 'AIRSPEED_INDICATED' | |
| unit | No | Unit to read in, e.g. 'feet', 'meters', 'knots'. Defaults to the catalog unit for this variable. | |
| index | No | Index for indexed SimVars such as engine number. Index 0 is valid. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |