Read slog2 logs on a QNX target
logsRetrieve and filter QNX system log entries by buffer, process, time, severity, or message substring, returning the newest entries with timestamps, pid, thread, severity, and message.
Instructions
Read the system log (slog2info -f -s -t) and filter it: buffer (buffer or buffer-set name), process (name substring or pid), since_s (relative to the target clock), min_severity (keep this level and more severe), contains (substring). Returns the newest limit entries with timestamps, pid, thread, severity and message.
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": {
"target": "<target>"
},
"name": "logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| buffer | No | Buffer name or buffer-set name | |
| target | Yes | Target name such as 'tb' (lowercase letters, digits, '-', '_'); must be inside the server allowlist | |
| process | No | Process name substring or numeric pid | |
| since_s | No | Only entries from the last N seconds of target time | |
| contains | No | Case-insensitive substring of the message | |
| min_severity | No | Keep entries at this severity or more severe |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||