services/computer-use-mcp/chrome-extension/README.md
Read-only Chrome DOM observation bridge for the AIRI Desktop Grounding layer.
eval / new Function / chrome.scripting.executeScriptAll user interactions are performed via real macOS OS-level input events (CGEvent) through the desktop grounding executor.
background.js (Service Worker)
↕ chrome.tabs.sendMessage
msg_bridge.js (ISOLATED world)
↕ window.postMessage
content.js (MAIN world, window.__AIRI_DG__)
chrome://extensions/chrome-extension/ directory| Command | Description |
|---|---|
getActiveTab | Get active tab info (id, url, title) |
getAllFrames | List all frames in active tab |
readAllFramesDOM | Collect interactive elements from all frames |
findElement | Find single element by CSS selector |
findElements | Find multiple elements by CSS selector |
getClickTarget | Get element center point for click targeting |
getElementAttributes | Get all attributes of an element |
Adapted from the repository's Chrome extension source with DOM-action methods stripped.