It depends what you call a parameter. Typically the value parts of the query string (if there are such) are called parameters. What you seem to be referring to here is simply the path of the URL.
You can extract all of that from the url field of the request object. Respectively parse its details by passing it to a new URL object. That is not so much Cloudflare related, but general JavaScript development.