OpenClaw 賦予 Cron 有 Glob 讀取檔案的權限
預設龍蝦的 cron 能用的內部工具是有限的,如果你有下指令讓她根據最近的對話紀錄的之類得,會需要用到搜尋 memory/2026-*.md 就有機率用到下面的的錯誤
I can’t use the tool “glob” here because it isn’t available. I need to stop retrying it and answer without that tool.
基本大概這幾個基礎指令有用到就給她吧
| 動作 | 需要的工具 | 原因 |
|---|---|---|
找記憶檔案 memory/2026-*.md | Glob | 找檔案模式匹配 |
| 讀記憶檔案內容 | Read | 讀檔案 |
| 搜尋檔案內容 | Grep | 搜關鍵字 |
| 執行指令 | Bash | 查今日 commit |
| 發報告到 Discord | SendMessage | 發訊息 |
給全域權限的指令
openclaw config set tools.alsoAllow '["glob","read","grep"]'
也能針對特定 corn 給權限
openclaw cron edit <cron-id> --tools glob,read,grep
看需求自己添加吧
沒有留言:
張貼留言