"omnibar"
widgets
+ widgetConfigs
fields on initialSetup{
"...": "...",
"widgets": [
{"...": "..."},
{"id": "omnibar"}
],
"widgetConfigs": [
{"...": "..."},
{"id": "omnibar", "visibility": "visible" }
]
}
omnibar_getConfig
{
"mode": "search"
}
omnibar_getSuggestions
term
parameter (the search term to get suggestions for){
"suggestions": {
"topHits": [
{
"kind": "bookmark",
"title": "Example Site",
"url": "https://example.com",
"isFavorite": true,
"score": 0.95
}
],
"duckduckgoSuggestions": [
{
"kind": "phrase",
"phrase": "example search term"
}
],
"localSuggestions": [
{
"kind": "historyEntry",
"title": "Previous Visit",
"url": "https://previous.com",
"score": 0.8
}
]
}
}
omnibar_onConfigUpdate
omnibar_setConfig
{
"mode": "ai"
}
omnibar_submitSearch
term
(the search term) and target
(where to open the search){
"term": "duckduckgo privacy",
"target": "same-tab"
}
omnibar_submitChat
chat
(the chat message) and target
(where to open the chat){
"chat": "How do I enable privacy protection?",
"target": "new-tab"
}
omnibar_openSuggestion
suggestion
(the selected suggestion) and target
(where to open it){
"suggestion": {
"kind": "bookmark",
"title": "DuckDuckGo",
"url": "https://duckduckgo.com",
"isFavorite": true,
"score": 1.0
},
"target": "same-tab"
}
The omnibar supports various types of suggestions:
All actions that open content support these target options:
"same-tab"
: Replace current tab content"new-tab"
: Open in a new tab"new-window"
: Open in a new browser window