bgi_log_search
Search the current day's BetterGI logs by level, regex, time window, or task keyword to diagnose why an automation run failed, returning matching lines with timestamps, class names, and messages.
Instructions
在当天 BetterGI 日志里定向检索(诊断"为什么失败"的取证工具):按级别/正则/时间窗/任务关键字过滤,返回带行号、时间戳、类名与消息正文的命中行。比 bgi_status 的日志尾部强得多。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | 最多返回多少条(默认 40) | |
| task | No | 只看含该关键字的段落,如 自动秘境 | |
| levels | No | 级别过滤 | |
| pattern | No | 正则(匹配消息正文或类名),如 "未匹配到任何战斗脚本|切换队伍失败" | |
| since_minutes | No | 只看最近 N 分钟 |