assert_node_state
Assert that a node property matches an expected value using comparison operators. Useful for runtime validation in Godot.
Instructions
Assert that a node property matches an expected value
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>",
"property": "<property>"
},
"name": "assert_node_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Node path in the running game | |
| expected | No | Expected value | |
| operator | No | Comparison operator: ==, !=, >, <, >=, <=, contains (default: '==') | == |
| property | Yes | Property name to check |