{ "tests": [ { "name": "Check BrowserOS Availability", "action": "checkBrowserOS", "payload": {}, "description": "Verify chrome.browserOS is available and list all APIs" }, { "name": "Get Active Tab", "action": "getActiveTab", "payload": {}, "description": "Get the currently active tab information" }, { "name": "Get All Tabs", "action": "getTabs", "payload": {}, "description": "Get all open tabs in the browser" }, { "name": "Get Page Load Status", "action": "getPageLoadStatus", "payload": { "tabId": "{{activeTabId}}" }, "description": "Check if the active tab has finished loading" }, { "name": "Capture Screenshot", "action": "captureScreenshot", "payload": { "tabId": "{{activeTabId}}", "size": "small" }, "description": "Capture a screenshot of the active tab" }, { "name": "Get Interactive Snapshot", "action": "getInteractiveSnapshot", "payload": { "tabId": "{{activeTabId}}" }, "description": "Get interactive elements snapshot from active tab" }, { "name": "Execute JavaScript - Get Title", "action": "executeJavaScript", "payload": { "tabId": "{{activeTabId}}", "code": "document.title" }, "description": "Execute JavaScript to get page title" }, { "name": "Execute JavaScript - Get URL", "action": "executeJavaScript", "payload": { "tabId": "{{activeTabId}}", "code": "window.location.href" }, "description": "Execute JavaScript to get current URL" }, { "name": "Scroll Down", "action": "scrollDown", "payload": { "tabId": "{{activeTabId}}" }, "description": "Scroll the active tab down by one viewport" }, { "name": "Scroll Up", "action": "scrollUp", "payload": { "tabId": "{{activeTabId}}" }, "description": "Scroll the active tab up by one viewport" }, { "name": "Get Snapshot (Text)", "action": "getSnapshot", "payload": { "tabId": "{{activeTabId}}", "type": "text", "options": { "context": "visible" } }, "description": "Get text snapshot of the active tab" }, { "name": "Open New Tab", "action": "openTab", "payload": { "url": "https://www.example.com", "active": true }, "description": "Open a new tab with example.com" }, { "name": "Navigate Current Tab", "action": "navigate", "payload": { "url": "https://www.wikipedia.org" }, "description": "Navigate the active tab to Wikipedia" }, { "name": "Switch Tab", "action": "switchTab", "payload": { "tabId": "{{activeTabId}}" }, "description": "Switch to the active tab (should already be active)" }, { "name": "Get Recent Bookmarks", "action": "getBookmarks", "payload": { "recent": true, "limit": 10 }, "description": "Get 10 most recent bookmarks" }, { "name": "Search Bookmarks", "action": "getBookmarks", "payload": { "query": "google", "limit": 5 }, "description": "Search for bookmarks containing 'google'" }, { "name": "Get Recent History", "action": "getRecentHistory", "payload": { "maxResults": 10, "hoursBack": 24 }, "description": "Get last 10 history items from past 24 hours" }, { "name": "Search History", "action": "searchHistory", "payload": { "query": "github", "maxResults": 5 }, "description": "Search history for 'github'" } ], "tabManagementTests": [ { "name": "Close Tab (Manual - requires tab ID)", "action": "closeTab", "payload": { "tabId": "MANUAL_INPUT_REQUIRED" }, "description": "Close a specific tab by ID (get ID from getTabs first)" } ], "bookmarkTests": [ { "name": "Create Bookmark (Manual)", "action": "createBookmark", "payload": { "title": "Example Site", "url": "https://www.example.com" }, "description": "Create a bookmark for example.com" }, { "name": "Remove Bookmark (Manual - requires bookmark ID)", "action": "removeBookmark", "payload": { "id": "MANUAL_INPUT_REQUIRED" }, "description": "Remove a bookmark by ID (get ID from getBookmarks first)" } ], "manualTests": [ { "name": "Click Element (Requires nodeId)", "action": "click", "payload": { "tabId": "{{activeTabId}}", "nodeId": "MANUAL_INPUT_REQUIRED" }, "description": "Click an element by nodeId (get nodeId from getInteractiveSnapshot first)" }, { "name": "Input Text (Requires nodeId)", "action": "inputText", "payload": { "tabId": "{{activeTabId}}", "nodeId": "MANUAL_INPUT_REQUIRED", "text": "Test input" }, "description": "Type text into an input element" }, { "name": "Clear Input (Requires nodeId)", "action": "clear", "payload": { "tabId": "{{activeTabId}}", "nodeId": "MANUAL_INPUT_REQUIRED" }, "description": "Clear an input element" }, { "name": "Scroll to Node (Requires nodeId)", "action": "scrollToNode", "payload": { "tabId": "{{activeTabId}}", "nodeId": "MANUAL_INPUT_REQUIRED" }, "description": "Scroll to a specific element" }, { "name": "Click at Coordinates", "action": "clickCoordinates", "payload": { "tabId": "{{activeTabId}}", "x": 100, "y": 100 }, "description": "Click at specific screen coordinates" }, { "name": "Type at Coordinates", "action": "typeAtCoordinates", "payload": { "tabId": "{{activeTabId}}", "x": 100, "y": 100, "text": "Test text" }, "description": "Type at specific screen coordinates" }, { "name": "Send Keys", "action": "sendKeys", "payload": { "tabId": "{{activeTabId}}", "keys": "Hello" }, "description": "Send keyboard keys to the active tab" } ], "_notes": { "activeTabId": "This placeholder will be replaced with the actual active tab ID at runtime", "tests": "These tests can run automatically without manual input", "manualTests": "These tests require manual nodeId input or specific coordinates" } }