test_expect
Asserts conditions on live PLC values, waiting up to a specified time for all checks to pass and returning per-check pass/fail with timing.
Instructions
Assert conditions on live values. checks: [{symbol, op, value, tolerance?}], op ∈ == != > >= < <= ~= (relative/abs tolerance) in between. within_ms>0 waits until all hold. Returns pass/fail per check with the time each one was met.
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": {
"checks": "<checks>"
},
"name": "test_expect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | Yes | ||
| within_ms | No | ||
| interval_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||