ServiceNow : Can we call custom directive from UI Action?

I have an UI Action which needs to call a directive function for execution to be completed. ? Is there any method to do that. On clicking UI Action it opens a modal and then it wants to access directive.