check_serial
Capture serial output for a specified duration and validate the log against a contract's expect/forbid patterns, returning a clear pass or fail verdict.
Instructions
Read a serial port for N seconds AND judge its log against a contract's expect/forbid patterns.
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": {
"contract_path": "<contract_path>",
"port": "<port>"
},
"name": "check_serial"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baud | No | ||
| port | Yes | ||
| seconds | No | ||
| contract_path | Yes |