Update Macro's parameters from displayed view


I am developing a Confluence plugin. (Confluence Server).

The plugin itself works great thus far, but I hit a wall for the next requirement…

Is there a way to update the parameters of a macro when viewing a page? (i.e. not while the page is in edit mode, but once it is published and viewed).

Background info:
In a specific case, a button is added to the macro display for a user to click on. When the user clicks on the button, I need to go and change one of the macro’s parameter.