{"at":"2026-11-23T05:00:26.718Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:00:27.147Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:00:27.247Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T05:00:27.639Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"instructions":"You are connected to Oculo, an AI-powered native browser. Your oculo tools (page, act, fill, read, run, media, shell) control the LIVE browser the user is currently looking at — not a headless browser or separate session.\n\nIMPORTANT: Always use oculo tools for ANY browser interaction. Do NOT use webpilot, playwright, puppeteer, or any other browser automation tools — they would open a separate browser instead of controlling the one the user sees.\n\nQuick reference:\n- page({detail:\"a11y\"}) → get ref-tagged accessibility tree, then use refs in act()\n- act({action:\"click\", ref:\"e5\"}) → click element by ref from accessibility tree\n- act({action:\"navigate\", url:\"...\"}) → go to a URL in the current tab\n- fill({fields:{\"Label\":\"value\"}}) → fill form fields by their visible labels\n- read({what:\"...\"}) → extract structured data from the page\n- run({steps:[...]}) → execute multi-step pipelines\n- media({type:\"image\", prompt:\"...\"}) → generate images or videos","protocolVersion":"2025-11-25","serverInfo":{"name":"oculo","version":"0.4.1"}}}}
{"at":"2026-11-23T05:00:27.639Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:00:27.639Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:00:27.641Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Describe the current page in Oculo browser. Default: compact (~30-80 tokens). Use detail=\"a11y\" for ref-tagged accessibility tree — interactive elements get [ref=e1],[ref=e2]... refs usable in act tool. Use detail=\"markdown\" for full article content as clean markdown.","inputSchema":{"properties":{"detail":{"description":"compact (default ~30-80 tokens), a11y (ref-tagged accessibility tree ~200-500 tokens), or markdown (article extraction via Readability)","enum":["compact","a11y","markdown"],"type":"string"},"include":{"description":"What to include: \"forms\", \"buttons\", \"links\", \"headings\", \"text\", \"images\"","items":{"type":"string"},"type":"array"},"scope":{"description":"CSS selector to scope description to a section of the page","type":"string"},"screenshot":{"description":"Attach a screenshot (default: false)","type":"boolean"},"tabId":{"description":"Target a specific tab by ID (for parallel execution). Omit for active tab.","type":"string"}},"type":"object"},"name":"page"},{"description":"Perform an action in Oculo browser: click, navigate, scroll, press key, hover, type, login. Elements found by ref (from a11y snapshot), text, role, label, placeholder, or CSS selector. After click/navigate/back/forward/reload, returns fresh ref-tagged snapshot. Use newTab with background=true to open tabs without switching, then use tabId to run actions in parallel.","inputSchema":{"properties":{"action":{"description":"Action to perform","enum":["click","navigate","back","forward","scroll","press","hover","select","login","reload","screenshot","screenshotSoM","upload","type","focus","clear","newTab","switchTab","closeTab","download","listDownloads","readFile","writeFile","clipboardImage","smartScroll","waitForText","waitForNetworkIdle","screenshotElement","listTabs","autoLogin","monitorNetwork","visualDiff","detectAPIs","iframeNavigate","recordStart","recordStop","dragAndDrop","extractPDF","monitorWebSocket","checkDialogs","printToPDF","getCookies","setCookie","deleteCookie","getStorage","setStorage","clearStorage","interceptNetwork","drag","clickAtPoint","doubleClick","rightClick","tripleClick","selectAll","scrollIntoView","waitForElement","wait","copy","paste","evaluate","getAttribute","solveCaptcha","exportCookies","importCookies","setProxy","clearProxy","startRecording","stopRecording"],"type":"string"},"amount":{"description":"Scroll amount in pixels","type":"number"},"attribute":{"description":"Attribute name for getAttribute action","type":"string"},"autoSubmit":{"description":"Auto-submit after login (default: true)","type":"boolean"},"background":{"description":"For newTab: open in background without switching (default: false). Returns tab ID for parallel execution.","type":"boolean"},"clear":{"description":"Clear existing content before typing (for type action). Works with both regular inputs and contenteditable fields.","type":"boolean"},"content":{"description":"File content for writeFile action","type":"string"},"cookies":{"description":"Cookies array for importCookies action","type":"array"},"direction":{"description":"Scroll direction","enum":["up","down","left","right"],"type":"string"},"expression":{"description":"JavaScript expression for evaluate action","type":"string"},"from":{"description":"Drag source: {x, y} or {text, selector}","type":"object"},"key":{"description":"Key to press (Enter, Tab, Escape, etc.)","type":"string"},"label":{"description":"Label text associated with the element","type":"string"},"modifiers":{"description":"Modifier keys (Ctrl, Shift, Alt, Meta)","items":{"type":"string"},"type":"array"},"name":{"description":"Accessible name of the element","type":"string"},"nth":{"description":"Which match to use (0-indexed, default: 0)","type":"number"},"placeholder":{"description":"Placeholder text of the input","type":"string"},"proxy":{"description":"Proxy config for setProxy action: {type, host, port, username?, password?, bypass?}","properties":{"bypass":{"items":{"type":"string"},"type":"array"},"host":{"type":"string"},"password":{"type":"string"},"port":{"type":"number"},"type":{"enum":["http","https","socks4","socks5","direct"],"type":"string"},"username":{"type":"string"}},"type":"object"},"ref":{"description":"Element ref from a11y snapshot (e.g. \"e5\"). Preferred over text/selector — use page({detail:\"a11y\"}) first.","type":"string"},"role":{"description":"ARIA role (button, link, textbox, etc.)","type":"string"},"screenshot":{"description":"Attach screenshot after action","type":"boolean"},"selector":{"description":"CSS selector (fallback)","type":"string"},"site":{"description":"Site domain for login action (uses credential vault)","type":"string"},"tabId":{"description":"Target a specific tab by ID (for parallel execution). Omit for active tab.","type":"string"},"text":{"description":"Visible text on the element to interact with","type":"string"},"to":{"description":"Drag target: {x, y} or {text, selector}","type":"object"},"url":{"description":"URL for navigate action","type":"string"},"value":{"description":"Value for select action, file path for readFile/writeFile","type":"string"},"x":{"description":"X coordinate for clickAtPoint/drag","type":"number"},"y":{"description":"Y coordinate for clickAtPoint/drag","type":"number"}},"required":["action"],"type":"object"},"name":"act"},{"description":"Fill form fields in Oculo browser by label, placeholder, or data-placeholder text. Handles text, select, checkbox, textarea, and contenteditable (DraftJS, ProseMirror). Use visible labels as keys.","inputSchema":{"properties":{"fields":{"description":"Object mapping field label → value (e.g. {\"Email\": \"hi@oculo.com\"})","type":"object"},"screenshot":{"description":"Attach screenshot after filling","type":"boolean"},"submit":{"description":"Submit form. true = first submit button, string = button text"},"tabId":{"description":"Target a specific tab by ID (for parallel execution). Omit for active tab.","type":"string"}},"required":["fields"],"type":"object"},"name":"fill"},{"description":"Extract structured data from the page in Oculo browser (search results, tables, lists, articles).","inputSchema":{"properties":{"fields":{"description":"Specific fields to extract","items":{"type":"string"},"type":"array"},"format":{"description":"Output format (default: text)","enum":["text","json"],"type":"string"},"limit":{"description":"Max items to return (default: 10)","type":"number"},"scope":{"description":"CSS selector to narrow extraction scope","type":"string"},"tabId":{"description":"Target a specific tab by ID (for parallel execution). Omit for active tab.","type":"string"},"what":{"description":"What to extract: \"search results\", \"products\", \"table data\", etc.","type":"string"}},"required":["what"],"type":"object"},"name":"read"},{"description":"PREFERRED for any task with 2+ actions. Executes a multi-step pipeline in a SINGLE call — use this instead of multiple act/fill calls. Example — post on X: run({steps:[{act:{action:\"navigate\",url:\"https://x.com/compose/post\"}},{wait:{timeout:2000}},{act:{action:\"type\",text:\"Hello world\",role:\"textbox\"}},{act:{action:\"click\",text:\"Post\",role:\"button\"}}]}). Each step is an object with exactly ONE key: page, act, fill, read, wait, or if. Cached for replay.","inputSchema":{"properties":{"description":{"description":"Short description for caching","type":"string"},"returnAll":{"description":"Return results from all steps (default: false)","type":"boolean"},"steps":{"description":"Array of steps. Each step is an object with exactly ONE key: page, act, fill, read, wait, or if.","items":{"properties":{"act":{"description":"Perform an action (click, navigate, scroll, etc.).","properties":{"action":{"description":"click, navigate, scroll, press, type, hover, etc.","type":"string"},"direction":{"type":"string"},"key":{"type":"string"},"selector":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"},"value":{"type":"string"}},"required":["action"],"type":"object"},"fill":{"description":"Fill form fields by label.","properties":{"fields":{"description":"Map of label → value","type":"object"},"submit":{"description":"true or button text"}},"required":["fields"],"type":"object"},"if":{"description":"Conditional branch.","properties":{"else":{"description":"Step to execute if false","type":"object"},"text":{"description":"Condition: page contains text","type":"string"},"then":{"description":"Step to execute if true","type":"object"},"url":{"description":"Condition: URL contains string","type":"string"}},"type":"object"},"page":{"description":"Describe the page.","properties":{"include":{"description":"Categories: forms, buttons, links, headings, text, images","items":{"type":"string"},"type":"array"},"scope":{"description":"CSS selector scope","type":"string"}},"type":"object"},"read":{"description":"Extract structured data.","properties":{"fields":{"items":{"type":"string"},"type":"array"},"format":{"enum":["text","json"],"type":"string"},"limit":{"type":"number"},"scope":{"type":"string"},"what":{"description":"What to extract","type":"string"}},"required":["what"],"type":"object"},"wait":{"description":"Wait for a condition (throws on timeout).","properties":{"selector":{"description":"Wait for CSS selector to match","type":"string"},"text":{"description":"Wait for text to appear","type":"string"},"timeout":{"description":"Timeout in ms (default: 5000)","type":"number"},"url":{"description":"Wait for URL to contain string","type":"string"}},"type":"object"}},"type":"object"},"type":"array"},"tabId":{"description":"Target a specific tab by ID (for parallel execution). Omit for active tab.","type":"string"},"workflow":{"description":"Replay a cached workflow by ID","type":"string"}},"type":"object"},"name":"run"},{"description":"Generate images (Nano Banana 2 / DALL-E 3) or videos (Veo 3.1) via Oculo. Returns saved file path. Supports image-to-image editing with reference image.","inputSchema":{"properties":{"duration":{"description":"Video duration: 4, 6, or 8 seconds","type":"number"},"image":{"description":"Path to reference image for image-to-image editing/transformation (Gemini only)","type":"string"},"model":{"description":"Image model: nano-banana-2 (default), nano-banana-pro, nano-banana","type":"string"},"prompt":{"description":"What to create","type":"string"},"provider":{"description":"Override: gemini, openai, stability","type":"string"},"size":{"description":"Image: 1024x1024, 2K, 4K. Video: 16:9, 9:16","type":"string"},"style":{"description":"natural, vivid, cinematic, anime","type":"string"},"type":{"description":"Generate an image or video","enum":["image","video"],"type":"string"}},"required":["type","prompt"],"type":"object"},"name":"media"},{"description":"Execute a shell command (ls, npm, git, node, python, etc.) via Oculo and return stdout+stderr. Non-interactive only.","inputSchema":{"properties":{"command":{"description":"The shell command to execute","type":"string"},"timeout":{"description":"Timeout in milliseconds (default: 30000, max: 120000)","type":"number"}},"required":["command"],"type":"object"},"name":"shell"},{"description":"Discover WebMCP tools registered by the current page via navigator.modelContext.registerTool() or <form toolname=\"...\"> elements. Returns list of available page-declared tools.","inputSchema":{"properties":{},"type":"object"},"name":"webmcp_list"},{"description":"Call a WebMCP tool registered by the current page. Use webmcp_list first to discover available tools.","inputSchema":{"properties":{"args":{"description":"Arguments to pass to the tool","type":"object"},"name":{"description":"Tool name to call (from webmcp_list)","type":"string"}},"required":["name"],"type":"object"},"name":"webmcp_call"},{"description":"Deep web research on a topic. Opens multiple tabs, reads pages, synthesizes findings.","inputSchema":{"properties":{"depth":{"description":"Research depth (1-3). Default: 2","type":"number"},"tabId":{"description":"Target tab ID","type":"string"},"topic":{"description":"Research topic or question","type":"string"}},"required":["topic"],"type":"object"},"name":"research"},{"description":"List all open browser tabs with their URLs and titles.","inputSchema":{"properties":{"tabId":{"description":"Target tab ID","type":"string"}},"type":"object"},"name":"tabs"},{"description":"Pre-fetch a URL without navigating. Returns page description without leaving current page.","inputSchema":{"properties":{"tabId":{"description":"Target tab ID","type":"string"},"url":{"description":"URL to preview","type":"string"}},"required":["url"],"type":"object"},"name":"preview"},{"description":"Translate page content or specific text to another language.","inputSchema":{"properties":{"tabId":{"description":"Target tab ID","type":"string"},"text":{"description":"Text to translate (omit for full page)","type":"string"},"to":{"description":"Target language code (e.g., \"en\", \"es\", \"zh\")","type":"string"}},"required":["to"],"type":"object"},"name":"translate"},{"description":"Visual analysis of the current page via screenshot. Describe what you see or answer questions about the page visually.","inputSchema":{"properties":{"question":{"description":"What to analyze or look for in the page","type":"string"},"tabId":{"description":"Target tab ID","type":"string"}},"required":["question"],"type":"object"},"name":"lens"},{"description":"Cancel a pending tool call by callId, or pass callId=\"all\" to cancel everything.","inputSchema":{"properties":{"callId":{"description":"The call ID to cancel, or \"all\" to cancel all pending calls","type":"string"}},"required":["callId"],"type":"object"},"name":"abort"},{"description":"List all pending tool calls with their callId, toolName, and elapsed time.","inputSchema":{"properties":{},"type":"object"},"name":"status"}]}}}
