Read L-Var
msfs_get_lvarRead a specific L-var value from the current aircraft to access add-on local variables. Uses MobiFlight WASM extension for retrieval.
Instructions
Read an L-var (local variable) value from the current aircraft.
L-vars are aircraft-specific local variables used by add-on developers. Requires the MobiFlight WASM extension.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "msfs_get_lvar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | L-var name, e.g. 'A32NX_EFIS_L_OPTION', 'WT_CJ4_HDG_ON'. The 'L:' prefix and RPN wrapping are added automatically if missing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |