in search results under the actions menu, i would like to have a tool that calls a script using what would be exported by the search results
Rather than try to modify or inject new functionality into the menus, I would suggest that your best option would be to create a custom search command;
http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Aboutcustomsearchcommands
That way you could create a search command that does something in particular with the search results it is passed, export, modify, visualize, pass onto something external etc if that is what you were looking for.
Rather than try to modify or inject new functionality into the menus, I would suggest that your best option would be to create a custom search command;
http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Aboutcustomsearchcommands
That way you could create a search command that does something in particular with the search results it is passed, export, modify, visualize, pass onto something external etc if that is what you were looking for.