How to open Firefox/my default browser with a search on macOS?

I have no idea. I’ve never run across any documentation of what, if any, custom URL schemes Firefox implements for things like this and if they are supported on both iOS and Mac.