refactor(config): nest MyTool settings under tools.my (with legacy-key migration)

This commit is contained in:
Xubin Ren
2026-04-16 15:58:20 +00:00
parent b51da93cbb
commit 90b7d940e8
8 changed files with 100 additions and 10 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ class MyTool(Tool):
if action in ("inspect", "check"):
return self._inspect(key)
if not self._modify_allowed:
return "Error: set is disabled (my_set is False)"
return "Error: set is disabled (tools.my.allow_set is false)"
if action in ("modify", "set"):
return self._modify(key, value)
return f"Unknown action: {action}"