The hosts are due to announce on Thursday their squad for the first of a four-test series at Lord's starting on July 14.
Buttler lost his test place to fellow wicket-keeper Jonny Bairstow in November while there are doubts over all-rounder Stokes's fitness to bowl as he recovers from knee surgery following an injury suffered while playing for England against Sri Lanka in May.
Stokes's worth as a batsman was underlined by his stunning 258 in a test against South Africa in Cape Town in January while Buttler looked in good touch when making runs during England's recent 3-0 one-day series win over Sri Lanka, wrapped up in Cardiff on Saturday.
Buttler has not played red-ball cricket this year but Australian Bayliss said after England's 122-run win in Cardiff: "He could play as a bat, I'm sure... he wouldn't have any problems at all. I think he could handle it.
"He's certainly in contention, that's for sure."
As for Stokes, Bayliss said: "He's playing the next four-day game (for Durham) as a batsman and might bowl some short spells, depending on how he's gone in the last few days in the nets.
"He's a guy who has made plenty of runs in test cricket already -- he has to be discussed, I'm sure."