Search L-Vars
msfs_search_lvarsSearch aircraft L-vars by keyword, automatically scoping to the current aircraft's catalog. Get paginated results with filters for category, prefix, and writable-only variables.
Instructions
Search known aircraft L-vars by keyword.
Searches the embedded L-var catalog for the current aircraft, or every known aircraft catalog if none is loaded or auto-detected. Results are paginated. Auto-detection tries, in order: PMDG's own client-data-area probe (authoritative -- confirms which SDK the aircraft is actually running, independent of what TITLE/ATC_MODEL say), every catalog's own title_pattern matched against TITLE/ATC_MODEL (the only mechanism for a third-party catalog dropped into data/), then honest absence.
When no aircraft catalog could be auto-detected and 'catalog' was not given, this searches every catalog ('filters.catalog' reads "all") and 'message' explains how to scope the search instead. Otherwise, 'message' still discloses how the catalog was resolved -- a probed detection is a materially stronger signal than a title-text match, and a caller deciding how much to trust the result should be able to tell them apart. When the search was not scoped to one confirmed catalog, the markdown table also carries a 'Catalog' column per row -- with the Fenix catalog removed, every bundled catalog is PMDG, so a table of PMDG variables must not render as if it were confirmed for whatever aircraft is actually loaded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results | |
| offset | No | Results to skip, for paging | |
| prefix | No | Filter by the catalog's variable-type prefix, matched exactly against each entry's 'prefix' field, e.g. PMDG's 'MCP', 'ELEC', 'EVT'. A catalog you build yourself (see msfs_browse_lvar_catalog) may use a different convention -- browse a panel first if you're unsure what a given catalog uses. | |
| catalog | No | Explicit catalog key to search, e.g. 'pmdg_737', 'pmdg_777', overriding auto-detection. Use this when the loaded aircraft isn't auto-detected, or to search a specific aircraft's catalog regardless of what's loaded. Call msfs_browse_lvar_catalog() with no arguments for the full list of keys currently bundled or dropped into data/ locally. | |
| keyword | Yes | Search term, e.g. 'seatbelt', 'autopilot', 'heading', 'fuel' | |
| category | No | Filter by panel/system category, e.g. 'Signs', 'FCU', 'Electrical' | |
| writable_only | No | Only return variables that can be written to | |
| response_format | No | 'markdown' for a compact table, 'json' for rows | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |