Can you register an OpenSearch URL for a Chrome extension?

Is it possible to write a Chrome extension that registers an OpenSearch search handler, which would allow you to tab complete a search in the URL bar and capture the output with your extension? Like the photo below, but hitting Enter would load my chrome extension in a full webpage. I've tried searching the documentation and Google, but did not find any relevant results.


ANSWERS:


It's unclear what you're asking exactly, but here's the corresponding API: Omnibox API

It allows you to add your own search, with which you can do as you please from chrome.omnibox.onInputEntered, suggest autocompletions, etc.

But there's a requirement of having your own keyword before the search terms.



 MORE:


 ? OpenSearchServer Renderer is empty
 ? Why "?" entered in Firefox search bar gets encoded as "%253F"
 ? Serving an OpenSearch `application/x-suggestions+json` through a service worker
 ? opensearchserver: cannot open files/links provided by the renderer (local links/files)
 ? Parsing the JSON response returned by MediaWiki OpenSearch API
 ? How to search local files with OpenSearchServer
 ? How to properly use IOpenServiceManager::InstallService
 ? Is there an AmazonS3 connector available for ManifoldCF?
 ? Is there a browser which still supports "file:///" links
 ? OpenSearch Description on Internet Explorer 11