Copy data in tab A, executing a tab B-function with this data in tab B

I have analyzed some extensions - for example the Pinboard-extension of http://browsernative.com/extensions/ which I have installed - and read a lot, but can’t find how I execute a function in another tab. As I said, I want to copy some data in tab A and with that data executing a tab B-function in tab B. Is it possible? Where can I find information to do this?

You would use the tabs.executeScript -