wt_add_trigger
Adds a validated trigger to a War Thunder CDK mission, defining events, conditions, and actions with schema-checked parameters and defaults.
Instructions
Add a trigger. events/conditions/actions are lists of {"type": , "params": {...}}; params are validated against the scheme (unknown names / bad enum values are rejected, defaults filled in). If events is empty, periodicEvent(1s) is used. Example action: {"type":"missionMarkAsWaypoint","params":{"target":"waypoint01","visible":true,"primary":true}}. actions_type: PERFORM_ONE_BY_ONE | PERFORM_ALL ; conditions_type: ALL | ANY.
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": {
"path": "<path>",
"name": "<name>"
},
"name": "wt_add_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| events | No | ||
| actions | No | ||
| enabled | No | ||
| replace | No | ||
| comments | No | ||
| conditions | No | ||
| actions_type | No | PERFORM_ONE_BY_ONE | |
| conditions_type | No | ALL | |
| enable_after_complete | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |