Thank you that is exactly what I needed to know. Thank you.
It would have been good if the parameters could be parsed through a custom regex with capturing groups, where the assigned group values could be used in the url as variables.
The current implementation means that only custom code at the URL target can be used for slash commands, which is extremely limiting. Turns mattermost into a developer tool rather than an end user product.