From 4d7f7dc6c8baf5208689456ef7c163a2eb963913 Mon Sep 17 00:00:00 2001 From: hzhang Date: Wed, 20 May 2026 14:49:42 +0100 Subject: [PATCH] fix: declare prompt_rules tool in contracts.tools Same class of bug as Meridian (zhi/Meridian#2), HarborForge.OpenclawPlugin (zhi/HarborForge.OpenclawPlugin#6), and PaddedCell (already fixed in 787d88c). OpenClaw's plugin host requires that any tool registered via `api.registerTool()` is also declared in `contracts.tools` in the plugin manifest, or the tool is silently dropped from the agent's available tool list. plugin doctor was warning: prism-facet: plugin must declare contracts.tools before registering agent tools PrismFacet registers exactly one tool, `prompt_rules` (in tools/prompt-rules.js). Declaring it in the manifest. Verified in sim that with this change the warning disappears and the tool becomes visible to agents. Co-Authored-By: Claude Opus 4.7 (1M context) --- plugin/openclaw.plugin.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/openclaw.plugin.json b/plugin/openclaw.plugin.json index 7e7ec2e..a07c08a 100644 --- a/plugin/openclaw.plugin.json +++ b/plugin/openclaw.plugin.json @@ -17,5 +17,10 @@ "description": "Path to rules.json (default: {pluginDir}/rules.json)" } } + }, + "contracts": { + "tools": [ + "prompt_rules" + ] } -} +} \ No newline at end of file