I am hoping to create a command template of sorts that passes the command itself as a value in a urlfetch. I'm using a custom api endpoint to return a clip with a particular tag. I am planning to create a command that will serve as the template to create subsequent ones. I could probably use an eval to separate the command from the ! and populate the URL parameter or even instruct users to pass a second argument, but I first wanted to find out if it's even possible to reference the command itself within a command.
The goal is to have something along the lines of $(urlfetch http://api.endpoint.com/stuffhere?tag=$(command)
where $(command) is !command without the ! (or with if possible, I could reformat the tag at the endpoint to add the exclamation point)