Description
Use the chrome.search API to search via the default provider.
Permissions
searchAvailability
Types
Disposition
Enum
"CURRENT_TAB"  "NEW_TAB"  "NEW_WINDOW" 
 Specifies that the search results display in the calling tab or the tab from the active browser.
 Specifies that the search results display in a new tab.
 Specifies that the search results display in a new window.
QueryInfo
Properties
- 
    dispositionDisposition optional Location where search results should be displayed. CURRENT_TABis the default.
- 
    tabIdnumber optional Location where search results should be displayed. tabIdcannot be used withdisposition.
- 
    textstring String to query with the default search provider. 
Methods
query()
chrome.search.query(
queryInfo: QueryInfo,
callback?: function,
): Promise<void>
Used to query the default search provider. In case of an error, runtime.lastError will be set.
Parameters
- 
    queryInfo
- 
    callbackfunction optional The callbackparameter looks like:() => void 
Returns
- 
            Promise<void> Chrome 96+Promises are only supported for Manifest V3 and later, other platforms need to use callbacks.