openclaw_logs
Retrieve recent OpenClaw server logs from gateway, agent runs, or system journal. Filter by line count and keywords to debug issues and monitor activity.
Instructions
View recent logs from the OpenClaw server: gateway logs, agent execution logs, or system journal. Supports line count and keyword filtering.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "openclaw_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Custom log file path on the server (only used when source="custom"). | |
| lines | No | Number of log lines to return (default: 50). | |
| filter | No | Filter log lines by keyword (grep -i). Only lines matching this pattern are returned. | |
| source | No | Log source: "gateway" (OpenClaw gateway), "agent" (last agent run), "system" (systemd journal), "custom" (specify path). | gateway |