Skip to content

Declare contracts.tools in plugin manifest - #5

Closed
hushaowu-rh wants to merge 1 commit into
dashhuang:mainfrom
hushaowu-rh:fix/contracts-tools
Closed

Declare contracts.tools in plugin manifest#5
hushaowu-rh wants to merge 1 commit into
dashhuang:mainfrom
hushaowu-rh:fix/contracts-tools

Conversation

@hushaowu-rh

Copy link
Copy Markdown

Newer OpenClaw versions require plugins to declare their agent tools in the manifest's contracts.tools before registering them at runtime. Without it, the gateway reports a plugin diagnostic error:

conversation-archive: plugin must declare contracts.tools before registering agent tools

This PR adds the declaration for the two built-in tools (conversation_archive_search, conversation_archive_health), matching the runtime api.registerTool(..., { names: [...] }) call in index.js, so tool ownership is discoverable without loading the plugin runtime.

Verified locally on OpenClaw 2026.6.11: after adding contracts.tools and restarting the gateway, the diagnostic error is gone and both tools register normally.

Docs reference: https://docs.openclaw.ai/plugin (tool plugins → contracts.tools discovery contract)

Newer OpenClaw versions require plugins to declare owned agent tools in
the manifest's contracts.tools before registering them at runtime.
Without this declaration the gateway reports a plugin diagnostic error:

  conversation-archive: plugin must declare contracts.tools before registering agent tools

Declare the two built-in tools (conversation_archive_search,
conversation_archive_health) so tool ownership is discoverable without
loading the plugin runtime.
@hushaowu-rh

Copy link
Copy Markdown
Author

Closing as duplicate of #4, which proposes the same contracts.tools fix and was submitted earlier. Sorry for the noise!

@hushaowu-rh hushaowu-rh closed this Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant