log_smart
Extracts errors, warnings, and the last lines of a log file, helping AI agents review relevant excerpts instead of reading entire logs.
Instructions
Errors, warnings and the last lines lines of a log file, instead of the whole log.
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>"
},
"name": "log_smart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |