Write SimVar
msfs_set_simvarWrite a value to a settable SimVar in Microsoft Flight Simulator, returning a specific error if the sim rejects the write. Check settability first with msfs_search_simvars.
Instructions
Write a value to a settable SimVar.
Fails with a specific error if the sim rejects the write, rather than reporting success. Check the 'settable' flag with msfs_search_simvars first.
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>",
"value": "<value>"
},
"name": "msfs_set_simvar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | SimVar name; must be settable | |
| unit | No | Unit the value is expressed in. Defaults to the catalog unit. | |
| index | No | Index for indexed SimVars. Index 0 is valid. | |
| value | Yes | Value to write |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |