diff --git a/docs/cli/hooks.md b/docs/cli/hooks.md index 41c955efac1e..8942223dd295 100644 --- a/docs/cli/hooks.md +++ b/docs/cli/hooks.md @@ -125,7 +125,7 @@ Not ready: 0 openclaw hooks enable ``` -Enable a specific hook by adding it to your config (`~/.openclaw/config.json`). +Enable a specific hook by adding it to your config (`~/.openclaw/openclaw.json`). **Note:** Workspace hooks are disabled by default until enabled here or in config. Hooks managed by plugins show `plugin:` in `openclaw hooks list` and can’t be enabled/disabled here. Enable/disable the plugin instead. diff --git a/docs/zh-CN/cli/hooks.md b/docs/zh-CN/cli/hooks.md index 231099ffaf71..ddcbddd19f4e 100644 --- a/docs/zh-CN/cli/hooks.md +++ b/docs/zh-CN/cli/hooks.md @@ -131,7 +131,7 @@ Not ready: 0 openclaw hooks enable ``` -通过将特定钩子添加到配置(`~/.openclaw/config.json`)来启用它。 +通过将特定钩子添加到配置(`~/.openclaw/openclaw.json`)来启用它。 **注意:** 由插件管理的钩子在 `openclaw hooks list` 中显示 `plugin:`, 无法在此处启用/禁用。请改为启用/禁用该插件。