@duckduckgo/content-scope-scripts
    Preparing search index...
    • Widget ID: "omnibar"
    • Add it to the widgets + widgetConfigs fields on initialSetup
    • Example:
    {
    "...": "...",
    "widgets": [
    {"...": "..."},
    {"id": "omnibar"}
    ],
    "widgetConfigs": [
    {"...": "..."},
    {"id": "omnibar", "visibility": "visible" }
    ]
    }
    {
    "mode": "search"
    }
    {
    "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
    }
    ]
    }
    }
    {
    "mode": "ai"
    }
    {
    "term": "duckduckgo privacy",
    "target": "same-tab"
    }
    {
    "chat": "How do I enable privacy protection?",
    "target": "new-tab"
    }
    {
    "suggestion": {
    "kind": "bookmark",
    "title": "DuckDuckGo",
    "url": "https://duckduckgo.com",
    "isFavorite": true,
    "score": 1.0
    },
    "target": "same-tab"
    }

    The omnibar supports various types of suggestions:

    • bookmark: Saved bookmarks with title, URL, favorite status, and relevance score
    • openTab: Currently open browser tabs with title, tab ID, and relevance score
    • phrase: Search phrase suggestions from DuckDuckGo
    • website: Direct website URL suggestions
    • historyEntry: Previously visited pages from browser history with title, URL, and relevance score
    • internalPage: Internal browser pages (settings, etc.) with title, URL, and relevance score

    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