Luzern To pilatus round trip is free with Eurail??
Luzern to Alpnachstad with boat
Pilatus Bhan to Pilatus Kulm with Cogwheel train
Pilatus Kulm to kriens with cable car
Is this trip is free with Eurail Pass??
No, it's not free, but you'll get a discount. Please note that Annika has already referred you to all details about coverage in your other thread, so you can check this yourself.
Is it free with Swiss travel pass??
No, it's not, but you'll get a bigger discount. Is something not clear about the page you were referred to?
All you need to know about traveling by train, bus or car in Switzerland.
Hand picked Swiss hotels and other accommodations are right here.
Swiss Travel Pass promotion: 25% discountAvailable until 11 December 2021. Book 11 months in advance. Free cancellation.https://shop.switzerlandtravelcentre.com/#/en/home.