Creates a new Tool.
| dialog |
SettingsDialog to access Config2 |
| tool |
The Tool.BaseTool object (can be null if Client.tools not available) |
| config |
The BaseToolConfig object |
| tool_name |
The tool name (used if tool is null) |