/a and press tab on sreachbar and sreach google

i wanna write /a to sreachbar and press tab. then addon will open a site. but i cant make it. how can i make that. how can i handle tab action and get whats writed in the sreachbar

Do you mean in the main address bar? Omnibox API maybe?