How to pass selected text to Shortcut with trackpad force click

I'm going to change trackpad force click action to trigger my shortcut and the shortcut input is the selected text. How do I get the force click selected text? I guess there should be a variable but I can't find it.