Skip to content

Commit 13987b7

Browse files
committed
docs: show explicit startup activation in plugin examples
1 parent 72c4854 commit 13987b7

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

docs/plugins/building-plugins.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ and provider plugins have dedicated guides linked above.
7676
"id": "my-plugin",
7777
"name": "My Plugin",
7878
"description": "Adds a custom tool to OpenClaw",
79+
"activation": {
80+
"onStartup": true
81+
},
7982
"configSchema": {
8083
"type": "object",
8184
"additionalProperties": false
@@ -84,7 +87,9 @@ and provider plugins have dedicated guides linked above.
8487
```
8588
</CodeGroup>
8689

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
8893
[Manifest](/plugins/manifest) for the full schema. The canonical ClawHub
8994
publish snippets live in `docs/snippets/plugin-publish/`.
9095

docs/snippets/plugin-publish/minimal-openclaw.plugin.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"id": "my-plugin",
33
"name": "My Plugin",
44
"description": "Adds a custom tool to OpenClaw",
5+
"activation": {
6+
"onStartup": true
7+
},
58
"configSchema": {
69
"type": "object",
710
"additionalProperties": false

0 commit comments

Comments
 (0)