docs: show explicit startup activation in plugin examples · openclaw/openclaw@13987b7
shakkernerd
·
2026-04-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -76,6 +76,9 @@ and provider plugins have dedicated guides linked above.
|
76 | 76 | "id": "my-plugin", |
77 | 77 | "name": "My Plugin", |
78 | 78 | "description": "Adds a custom tool to OpenClaw", |
| 79 | + "activation": { |
| 80 | + "onStartup": true |
| 81 | + }, |
79 | 82 | "configSchema": { |
80 | 83 | "type": "object", |
81 | 84 | "additionalProperties": false |
@@ -84,7 +87,9 @@ and provider plugins have dedicated guides linked above.
|
84 | 87 | ``` |
85 | 88 | </CodeGroup> |
86 | 89 | |
87 | | -Every plugin needs a manifest, even with no config. See |
| 90 | +Every plugin needs a manifest, even with no config, and every plugin should |
| 91 | +declare `activation.onStartup` intentionally. Runtime-registered tools need |
| 92 | +startup import, so this example sets it to `true`. See |
88 | 93 | [Manifest](/plugins/manifest) for the full schema. The canonical ClawHub |
89 | 94 | publish snippets live in `docs/snippets/plugin-publish/`. |
90 | 95 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。