// We defined this event in our schema. browser.myapi.onToolbarClick.addListener(function () { // We could do something interesting here with toolbar, x, and y, but we're not going to. // We defined this function in our schema. browser.myapi.sayHello("world"); });