docs: clarify malformed plugin tool guards · openclaw/openclaw@3c6d178
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -396,6 +396,8 @@ function convertAnthropicTools(tools: Context["tools"], isOAuthToken: boolean) {
|
396 | 396 | return []; |
397 | 397 | } |
398 | 398 | return tools.flatMap((tool) => { |
| 399 | +// Main quarantine happens when plugin tools materialize; this keeps Anthropic |
| 400 | +// safe for direct/custom tool arrays that bypass the plugin registry. |
399 | 401 | const parameters = |
400 | 402 | tool.parameters && typeof tool.parameters === "object" && !Array.isArray(tool.parameters) |
401 | 403 | ? (tool.parameters as Record<string, unknown>) |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。