read_events
Retrieve timestamped lines from serial, log-file, or MQTT sources; optionally block until specific text appears or timeout.
Instructions
Read timestamped lines from an active event adapter (serial, log file, MQTT). Can block until specific text appears or until timeout.
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": {
"source": "<source>"
},
"name": "read_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Max lines to return | |
| source | Yes | Adapter source name (e.g. 'serial:COM1', 'logfile') | |
| timeout_s | No | Timeout in seconds to wait for until_text | |
| until_text | No | Optional text to wait for | |
| last_seconds | No | Time window in seconds |