You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -100,12 +102,18 @@ public function registerTool(Tool $tool, callable|array|string $handler, bool $i
100
102
101
103
if ($existing && !$isManual && $existing->isManual) {
102
104
$this->logger->debug(
103
-
"Ignoring discovered tool '{$toolName}' as it conflicts with a manually registered one.",
105
+
\sprintf('Ignoring discovered tool "%s" as it conflicts with a manually registered one.', $toolName),
104
106
);
105
107
106
108
return;
107
109
}
108
110
111
+
if (!$this->nameValidator->isValid($toolName)) {
112
+
$this->logger->warning(
113
+
\sprintf('Tool name "%s" is invalid. Tool names should only contain letters from a-z, numbers, dots, hyphens, underscores, and forward slashes.', $toolName),
0 commit comments