static String resolveToolIdByName({ required String toolName, required Map<String, String> toolIdByName, }) => (toolIdByName[toolName] ?? '').trim();