{"at":"2026-11-23T01:40:09.769Z","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-23T01:40:10.684Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:40:10.835Z","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-23T01:40:11.698Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"CloakBrowser — stealth browser automation with anti-detection. Source-patched Chromium that passes Cloudflare, reCAPTCHA, FingerprintJS.\n\nWORKFLOW:\n1. cloak_launch() — start stealth browser (auto-creates first page)\n2. cloak_navigate(page_id, url) — go to a URL (auto-waits for page settle)\n3. cloak_snapshot(page_id) — get interactive elements with [@eN] ref IDs\n4. cloak_click(page_id, '@e5') — click by ref from snapshot\n5. cloak_type(page_id, '@e3', 'text') — type by ref from snapshot\n6. cloak_read_page(page_id) — get page content as clean markdown\n7. cloak_close() — close browser when done\n\nIMPORTANT:\n- cloak_snapshot() is the PRIMARY way to understand pages. Call it first.\n- All interaction uses [@eN] ref IDs from snapshot. No CSS selectors.\n- cloak_read_page() returns clean markdown for reading content.\n- cloak_screenshot() returns annotated screenshots with element indices.\n- Action tools auto-return an updated snapshot.","protocolVersion":"2025-11-25","serverInfo":{"name":"cloakbrowser","version":"1.30.0"}}}}
{"at":"2026-11-23T01:40:11.698Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:40:11.698Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:40:11.699Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Launch a stealth CloakBrowser instance. All anti-detection is ON by default.\n\nCloakBrowser is a source-patched Chromium passing Cloudflare Turnstile,\nreCAPTCHA v3 (0.9 score), FingerprintJS, BrowserScan, and 30+ detectors.\n\nArgs:\n    headless: Run headless. Some aggressive sites need headed mode (False).\n    proxy: Proxy URL (e.g. 'http://user:pass@proxy:8080'). Residential recommended.\n    humanize: Human-like mouse/keyboard/scroll (default: True).\n    human_preset: 'default' or 'careful' (slower, more deliberate).\n    stealth_args: Apply stealth fingerprint args (default: True).\n    timezone: IANA timezone (e.g. 'America/New_York').\n    locale: BCP 47 locale (e.g. 'en-US').\n    geoip: Auto-detect timezone/locale from proxy IP.\n    fingerprint_seed: Fixed seed for consistent identity across sessions.\n    user_data_dir: Persistent profile path (cookies/localStorage survive restarts).\n    viewport_width: Viewport width in pixels.\n    viewport_height: Viewport height in pixels.\n    color_scheme: 'light', 'dark', or 'no-preference'.\n    user_agent: Custom user agent override.\n    extra_args: Additional Chromium CLI flags.\n","inputSchema":{"properties":{"color_scheme":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Color Scheme"},"extra_args":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Extra Args"},"fingerprint_seed":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Fingerprint Seed"},"geoip":{"default":false,"title":"Geoip","type":"boolean"},"headless":{"default":true,"title":"Headless","type":"boolean"},"human_preset":{"default":"default","title":"Human Preset","type":"string"},"humanize":{"default":true,"title":"Humanize","type":"boolean"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Locale"},"proxy":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Proxy"},"stealth_args":{"default":true,"title":"Stealth Args","type":"boolean"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Timezone"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"User Agent"},"user_data_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"User Data Dir"},"viewport_height":{"default":947,"title":"Viewport Height","type":"integer"},"viewport_width":{"default":1920,"title":"Viewport Width","type":"integer"}},"title":"cloak_launchArguments","type":"object"},"name":"cloak_launch","outputSchema":{"additionalProperties":true,"title":"cloak_launchDictOutput","type":"object"}},{"description":"Close the stealth browser and release all resources. Always call when done.","inputSchema":{"properties":{},"title":"cloak_closeArguments","type":"object"},"name":"cloak_close","outputSchema":{"additionalProperties":true,"title":"cloak_closeDictOutput","type":"object"}},{"description":"Capture the page's accessibility tree — the PRIMARY way to understand pages.\n\nReturns interactive elements with [@eN] ref IDs for use with cloak_click,\ncloak_type, cloak_select, etc. Call this BEFORE interacting with a page.\n\nfull=False (default): interactive elements only — compact and fast.\nfull=True: includes surrounding text content for reading context.\n\nThis is FASTER, CHEAPER, and MORE RELIABLE than screenshots.\nAlways prefer this over cloak_screenshot for deciding what to click.\n\nArgs:\n    page_id: Target page ID from cloak_launch or cloak_new_page.\n    full: Include text content alongside interactive elements.\n    max_length: Max characters to return (default: 8000).\n","inputSchema":{"properties":{"full":{"default":false,"title":"Full","type":"boolean"},"max_length":{"default":8000,"title":"Max Length","type":"integer"},"page_id":{"title":"Page Id","type":"string"}},"required":["page_id"],"title":"cloak_snapshotArguments","type":"object"},"name":"cloak_snapshot","outputSchema":{"additionalProperties":true,"title":"cloak_snapshotDictOutput","type":"object"}},{"description":"Click an element by its [@eN] ref ID from cloak_snapshot.\n\nAuto-retries once if the element moved. Returns an updated snapshot.\n\nArgs:\n    page_id: Target page ID.\n    ref: Ref ID from snapshot (e.g. '@e5' or 'e5').\n","inputSchema":{"properties":{"page_id":{"title":"Page Id","type":"string"},"ref":{"title":"Ref","type":"string"}},"required":["page_id","ref"],"title":"cloak_clickArguments","type":"object"},"name":"cloak_click","outputSchema":{"additionalProperties":true,"title":"cloak_clickDictOutput","type":"object"}},{"description":"Type text into an input by its [@eN] ref ID from cloak_snapshot.\n\nClears the field first by default. Set submit=True to press Enter after.\nReturns an updated snapshot.\n\nArgs:\n    page_id: Target page ID.\n    ref: Ref ID from snapshot (e.g. '@e3' or 'e3').\n    text: Text to type.\n    clear: Clear field before typing (default: True).\n    submit: Press Enter after typing (default: False).\n","inputSchema":{"properties":{"clear":{"default":true,"title":"Clear","type":"boolean"},"page_id":{"title":"Page Id","type":"string"},"ref":{"title":"Ref","type":"string"},"submit":{"default":false,"title":"Submit","type":"boolean"},"text":{"title":"Text","type":"string"}},"required":["page_id","ref","text"],"title":"cloak_typeArguments","type":"object"},"name":"cloak_type","outputSchema":{"additionalProperties":true,"title":"cloak_typeDictOutput","type":"object"}},{"description":"Select a dropdown option by ref ID. Provide one of: value, label, or index.\n\nReturns an updated snapshot.\n\nArgs:\n    page_id: Target page ID.\n    ref: Ref ID of the <select> element.\n    value: Option value attribute to select.\n    label: Option visible text to select.\n    index: Option index (0-based) to select.\n","inputSchema":{"properties":{"index":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Index"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Label"},"page_id":{"title":"Page Id","type":"string"},"ref":{"title":"Ref","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Value"}},"required":["page_id","ref"],"title":"cloak_selectArguments","type":"object"},"name":"cloak_select","outputSchema":{"additionalProperties":true,"title":"cloak_selectDictOutput","type":"object"}},{"description":"Hover over an element by ref ID. Returns an updated snapshot.\n\nArgs:\n    page_id: Target page ID.\n    ref: Ref ID from snapshot.\n","inputSchema":{"properties":{"page_id":{"title":"Page Id","type":"string"},"ref":{"title":"Ref","type":"string"}},"required":["page_id","ref"],"title":"cloak_hoverArguments","type":"object"},"name":"cloak_hover","outputSchema":{"additionalProperties":true,"title":"cloak_hoverDictOutput","type":"object"}},{"description":"Check or uncheck a checkbox/radio by ref ID. Returns an updated snapshot.\n\nArgs:\n    page_id: Target page ID.\n    ref: Ref ID from snapshot.\n    checked: True to check, False to uncheck.\n","inputSchema":{"properties":{"checked":{"default":true,"title":"Checked","type":"boolean"},"page_id":{"title":"Page Id","type":"string"},"ref":{"title":"Ref","type":"string"}},"required":["page_id","ref"],"title":"cloak_checkArguments","type":"object"},"name":"cloak_check","outputSchema":{"additionalProperties":true,"title":"cloak_checkDictOutput","type":"object"}},{"description":"Get the page content as clean, readable markdown.\n\nBest for reading articles, docs, search results, or any content-heavy page.\nStrips navigation, ads, footers — returns just the main content.\nMuch more token-efficient than raw HTML (60-80% savings).\n\nArgs:\n    page_id: Target page ID.\n    max_length: Max characters to return (default: 50000).\n","inputSchema":{"properties":{"max_length":{"default":50000,"title":"Max Length","type":"integer"},"page_id":{"title":"Page Id","type":"string"}},"required":["page_id"],"title":"cloak_read_pageArguments","type":"object"},"name":"cloak_read_page","outputSchema":{"additionalProperties":true,"title":"cloak_read_pageDictOutput","type":"object"}},{"description":"Take an annotated screenshot with element indices overlaid.\n\nEach numbered element maps to [@eN] refs from cloak_snapshot.\nUse when you need VISUAL context — images, charts, CAPTCHAs, or layout.\nFor most interactions, prefer cloak_snapshot() instead.\n\nReturns: file path to saved PNG, element count.\n\nArgs:\n    page_id: Target page ID.\n    full_page: Capture entire scrollable page (default: viewport only).\n","inputSchema":{"properties":{"full_page":{"default":false,"title":"Full Page","type":"boolean"},"page_id":{"title":"Page Id","type":"string"}},"required":["page_id"],"title":"cloak_screenshotArguments","type":"object"},"name":"cloak_screenshot","outputSchema":{"additionalProperties":true,"title":"cloak_screenshotDictOutput","type":"object"}},{"description":"Navigate to a URL. Auto-waits for the page to settle (network idle + DOM stable).\n\nHandles Cloudflare challenge pages with extra wait time.\nReturns an updated snapshot of the loaded page.\n\nArgs:\n    page_id: Target page ID.\n    url: URL to navigate to.\n    timeout: Navigation timeout in milliseconds.\n","inputSchema":{"properties":{"page_id":{"title":"Page Id","type":"string"},"timeout":{"default":30000,"title":"Timeout","type":"integer"},"url":{"title":"Url","type":"string"}},"required":["page_id","url"],"title":"cloak_navigateArguments","type":"object"},"name":"cloak_navigate","outputSchema":{"additionalProperties":true,"title":"cloak_navigateDictOutput","type":"object"}},{"description":"Navigate back in browser history. Returns an updated snapshot.\n\nArgs:\n    page_id: Target page ID.\n","inputSchema":{"properties":{"page_id":{"title":"Page Id","type":"string"}},"required":["page_id"],"title":"cloak_backArguments","type":"object"},"name":"cloak_back","outputSchema":{"additionalProperties":true,"title":"cloak_backDictOutput","type":"object"}},{"description":"Navigate forward in browser history. Returns an updated snapshot.\n\nArgs:\n    page_id: Target page ID.\n","inputSchema":{"properties":{"page_id":{"title":"Page Id","type":"string"}},"required":["page_id"],"title":"cloak_forwardArguments","type":"object"},"name":"cloak_forward","outputSchema":{"additionalProperties":true,"title":"cloak_forwardDictOutput","type":"object"}},{"description":"Press a keyboard key (Enter, Tab, Escape, ArrowDown, etc.).\n\nReturns an updated snapshot.\n\nArgs:\n    page_id: Target page ID.\n    key: Key name (DOM KeyboardEvent key).\n","inputSchema":{"properties":{"key":{"title":"Key","type":"string"},"page_id":{"title":"Page Id","type":"string"}},"required":["page_id","key"],"title":"cloak_press_keyArguments","type":"object"},"name":"cloak_press_key","outputSchema":{"additionalProperties":true,"title":"cloak_press_keyDictOutput","type":"object"}},{"description":"Scroll the page. Returns an updated snapshot.\n\nArgs:\n    page_id: Target page ID.\n    direction: 'up' or 'down'.\n    amount: Pixels to scroll.\n","inputSchema":{"properties":{"amount":{"default":500,"title":"Amount","type":"integer"},"direction":{"default":"down","title":"Direction","type":"string"},"page_id":{"title":"Page Id","type":"string"}},"required":["page_id"],"title":"cloak_scrollArguments","type":"object"},"name":"cloak_scroll","outputSchema":{"additionalProperties":true,"title":"cloak_scrollDictOutput","type":"object"}},{"description":"Wait for the page to settle (no DOM mutations + network idle).\n\nUse after actions that trigger dynamic content loading.\nReturns whether the page settled and how many DOM mutations occurred.\n\nArgs:\n    page_id: Target page ID.\n    timeout_ms: Max wait time in milliseconds (default: 5000).\n","inputSchema":{"properties":{"page_id":{"title":"Page Id","type":"string"},"timeout_ms":{"default":5000,"title":"Timeout Ms","type":"integer"}},"required":["page_id"],"title":"cloak_waitArguments","type":"object"},"name":"cloak_wait","outputSchema":{"additionalProperties":true,"title":"cloak_waitDictOutput","type":"object"}},{"description":"Execute JavaScript in the page context and return the result.\n\nArgs:\n    page_id: Target page ID.\n    expression: JavaScript expression to evaluate.\n","inputSchema":{"properties":{"expression":{"title":"Expression","type":"string"},"page_id":{"title":"Page Id","type":"string"}},"required":["page_id","expression"],"title":"cloak_evaluateArguments","type":"object"},"name":"cloak_evaluate","outputSchema":{"additionalProperties":true,"title":"cloak_evaluateDictOutput","type":"object"}},{"description":"Open a new browser page/tab. Optionally navigate to a URL.\n\nArgs:\n    url: URL to navigate to after creating the page.\n","inputSchema":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"}},"title":"cloak_new_pageArguments","type":"object"},"name":"cloak_new_page","outputSchema":{"additionalProperties":true,"title":"cloak_new_pageDictOutput","type":"object"}},{"description":"List all open pages with their IDs and URLs.","inputSchema":{"properties":{},"title":"cloak_list_pagesArguments","type":"object"},"name":"cloak_list_pages","outputSchema":{"additionalProperties":true,"title":"cloak_list_pagesDictOutput","type":"object"}},{"description":"Close a specific page by ID.\n\nArgs:\n    page_id: Page ID to close.\n","inputSchema":{"properties":{"page_id":{"title":"Page Id","type":"string"}},"required":["page_id"],"title":"cloak_close_pageArguments","type":"object"},"name":"cloak_close_page","outputSchema":{"additionalProperties":true,"title":"cloak_close_pageDictOutput","type":"object"}}]}}}
