Validates a tool name for use as a registered tool id.
the name to validate
the currently defined tools, used to check for name collisions
Optional
the id of the tool being edited, so it is not compared against itself
a localized error message if the name is invalid, otherwise undefined
undefined
Validates a tool name for use as a registered tool id.