{"at":"2026-11-23T02:35:50.788Z","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-23T02:35:51.260Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:35:51.361Z","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-23T02:35:51.839Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"baton","version":"0.2.10"}}}}
{"at":"2026-11-23T02:35:51.839Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:35:51.839Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:35:51.844Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Search bounded log and network evidence across projects. Defaults to errors only and 20 findings. Findings are grouped by session; repeats of the same error are counted once (×N), and a stack is collapsed to its first app frames. Pass a trace ID and errorsOnly=false to follow a request across Node services. Use exact session IDs to limit scope.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"errorsOnly":{"default":true,"type":"boolean"},"limit":{"default":20,"maximum":50,"minimum":1,"type":"integer"},"query":{"default":"","maxLength":200,"type":"string"},"root":{"type":"string"},"sessions":{"items":{"type":"string"},"maxItems":16,"type":"array"},"since":{"type":"number"}},"type":"object"},"name":"diagnose"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Launch up to eight project targets in dependency order and wait for each to become ready, in one call. Stops launching dependents on failure. Returns compact session IDs, URLs and errors; retains sessions for debugging. Use browser/device tools next to validate the actual flow. Paths must be absolute.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"name":{"maxLength":100,"minLength":1,"type":"string"},"steps":{"items":{"additionalProperties":false,"properties":{"branch":{"type":"string"},"checkout":{"type":"string"},"cwd":{"minLength":1,"type":"string"},"deviceId":{"type":"string"},"name":{"maxLength":100,"minLength":1,"type":"string"},"target":{"minLength":1,"type":"string"},"timeoutMs":{"default":60000,"maximum":120000,"minimum":1,"type":"integer"},"until":{"default":"running","enum":["running","url"],"type":"string"}},"required":["name","cwd","target"],"type":"object"},"maxItems":8,"minItems":1,"type":"array"}},"required":["name","steps"],"type":"object"},"name":"run_workflow"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Read fresh launch sources, configuration problems, nested projects and guidance file paths. Does not run commands or expose environment values. Use before choosing an environment, checkout and device; review screenshot evidence rather than treating capture as visual approval.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"cwd":{"type":"string"}},"type":"object"},"name":"inspect_project"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List everything runnable in a project: launch.json configs, package.json dev scripts, Flutter entrypoints.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"cwd":{"description":"Project directory. Defaults to the daemon working directory.","type":"string"}},"type":"object"},"name":"list_targets"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List running sessions with their status, capabilities, URLs and device.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_sessions"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List git checkouts this project can run from: This checkout, linked worktrees, local branches, remotes.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"cwd":{"description":"Project directory. Defaults to the daemon working directory.","type":"string"}},"type":"object"},"name":"list_checkouts"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Start a target by name. Returns the new session id to use with the other tools. Optional branch or checkout runs from a git worktree without moving the current folder.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"branch":{"description":"Git branch or remote ref to run from a Baton-owned copy. Mutually exclusive with checkout.","type":"string"},"checkout":{"description":"Path to an existing worktree to attach. Mutually exclusive with branch.","type":"string"},"cwd":{"type":"string"},"deviceId":{"description":"Force a specific device or simulator.","type":"string"},"target":{"description":"Target name or an unambiguous substring of it.","type":"string"}},"required":["target"],"type":"object"},"name":"run_target"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Hot reload a session, keeping app state. Flutter only. Returns code 0 on success; a non-zero code carries the compile error.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"all":{"description":"Reload every running session.","type":"boolean"},"reason":{"type":"string"},"session":{"description":"Session id. Omit with all=true.","type":"string"}},"type":"object"},"name":"hot_reload"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Hot restart a session, dropping app state. For web dev servers and plain processes this reboots the process.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"all":{"type":"boolean"},"reason":{"type":"string"},"session":{"type":"string"}},"type":"object"},"name":"hot_restart"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Stop one session, or every running session with all=true.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"all":{"type":"boolean"},"session":{"type":"string"}},"type":"object"},"name":"stop_session"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Remove stopped sessions from the list. Running sessions must be stopped first. Use all=true to clear every stopped session.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"all":{"type":"boolean"},"session":{"type":"string"}},"type":"object"},"name":"forget_session"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Read recent output from a session, newest last. Use filter to grep for an error: it searches all retained output and returns the last `tail` matching lines. Works for a currently running session id, and for a past run (its own session id, or the runId from list_run_history) even after it has stopped or the daemon has restarted.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"filter":{"description":"Case-insensitive regular expression.","type":"string"},"session":{"description":"A live session id, or a past run's session id / runId.","type":"string"},"tail":{"description":"How many lines (default 200); with a filter, how many matching lines.","type":"number"}},"required":["session"],"type":"object"},"name":"read_logs"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List past and current runs persisted on disk -- survives daemon restarts. Each line is runId, name, status (live / exit N / ?), how long ago it started, and its log size. Pass a runId to read_logs to see its output.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"cwd":{"description":"Project directory; limits the list to that project.","type":"string"},"limit":{"description":"Maximum runs to return (default 50).","type":"number"}},"type":"object"},"name":"list_run_history"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List HTTP requests the app has made, newest last. One line each: id, method, status (… while in flight), duration in ms, response bytes, URI. Flutter debug/profile sessions only, while the app is running. Captures dart:io HttpClient traffic (package:http and dio with its default adapter) — NOT cupertino_http/cronet_http native clients, WebSockets or raw sockets. Traffic those make is invisible here, not absent.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"filter":{"description":"Case-insensitive regular expression over \"METHOD uri\".","type":"string"},"session":{"description":"Session id from list_sessions.","type":"string"},"tail":{"description":"How many requests (default 200).","type":"number"}},"required":["session"],"type":"object"},"name":"list_network_requests"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"One captured request in full: headers, timeline events, and optionally the bodies. Fetched from the running app, so it works only while the session is alive. Flutter debug/profile sessions only, while the app is running. Captures dart:io HttpClient traffic (package:http and dio with its default adapter) — NOT cupertino_http/cronet_http native clients, WebSockets or raw sockets. Traffic those make is invisible here, not absent.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"id":{"description":"Request id from list_network_requests (the short number works too).","type":"string"},"includeBodies":{"description":"Include request and response bodies (capped at 256 KB).","type":"boolean"},"session":{"type":"string"}},"required":["session","id"],"type":"object"},"name":"get_network_request"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Forget every captured request for a session, in the daemon and in the app itself. Useful before reproducing one specific call.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"session":{"type":"string"}},"required":["session"],"type":"object"},"name":"clear_network_requests"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Read a project's launch.json exactly as written -- comments, formatting and all -- plus the configurations it defines and any pre-flight problems with them. Returns file: null when the project has none; a file that does not parse still returns its text, with the parse errors.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"cwd":{"description":"Project directory. Defaults to the daemon's current project.","type":"string"}},"type":"object"},"name":"read_launch_config"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"OVERWRITE a project's launch.json with the text given. The whole file is replaced, so read it with read_launch_config first and send the full text back, or comments and configurations you did not mean to touch are lost. Invalid JSONC is refused before anything is written. Returns the path written and any pre-flight issues in the result.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"cwd":{"description":"Project directory. Defaults to the daemon's current project.","type":"string"},"file":{"description":"Which convention to create for a project that has neither. A project that already has a launch.json is written back to that same file.","enum":["vscode","claude"],"type":"string"},"text":{"description":"The complete file contents. JSONC: comments and trailing commas are allowed.","type":"string"}},"required":["text"],"type":"object"},"name":"write_launch_config"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List connected devices, simulators and emulators available to Flutter. Use boot_device to start one that is not running.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"cwd":{"type":"string"}},"type":"object"},"name":"list_devices"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Toggle a framework debug flag on a running Flutter session, e.g. ext.flutter.debugPaint with {enabled: true} or ext.flutter.timeDilation with {timeDilation: 5}. Values are sent as the strings Flutter expects.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"method":{"description":"Service extension name, e.g. ext.flutter.debugPaint","type":"string"},"params":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"session":{"type":"string"}},"required":["session","method"],"type":"object"},"name":"set_debug_flag"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Capture the screen of a running session so the visual result of a change can be checked. iOS simulators and Android devices capture the device screen. Web sessions (Vite, Next.js, Flutter web...) load their URL in a headless Chrome, Edge or Brave at the viewport given, and also report the page's console errors and failed requests; they capture at 1x unless scale=2. A capture proves an image was written, not that the UI is right: look at it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"out":{"description":"Where to save the PNG. Defaults to a path under the daemon's state directory.","type":"string"},"scale":{"anyOf":[{"const":1,"type":"number"},{"const":2,"type":"number"}],"description":"Web sessions only: device pixels per CSS pixel. 1 (default) keeps the image small; 2 for fine detail, at about 4x the image tokens."},"session":{"type":"string"},"viewport":{"description":"Web sessions only: phone (390x844), tablet (820x1180), desktop (1280x800, the default) or WIDTHxHEIGHT.","type":"string"}},"required":["session"],"type":"object"},"name":"screenshot"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"After editing code: apply the change and return the evidence in one call, instead of hot_reload + wait_for + read_logs + list_network_requests + screenshot. action=auto hot reloads Flutter, leaves web and React Native to HMR / Fast Refresh, and restarts everything else. Answers ok/not ok with only what is new since the call began: reload result, error lines (for web, including the browser console), failed requests, and a screenshot. Prefer this as the default step after every edit.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"action":{"description":"Default auto.","enum":["auto","reload","restart","none"],"type":"string"},"scale":{"anyOf":[{"const":1,"type":"number"},{"const":2,"type":"number"}],"description":"Web sessions only: device pixels per CSS pixel. 1 (default) keeps the image small; 2 for fine detail, at about 4x the image tokens."},"screenshot":{"description":"Default true. false returns text only; a web page is still loaded headlessly so its console errors count.","type":"boolean"},"session":{"type":"string"},"settleMs":{"description":"Wait after the action before collecting evidence (default 1500).","type":"number"},"viewport":{"description":"Web sessions only: phone (390x844), tablet (820x1180), desktop (1280x800, the default) or WIDTHxHEIGHT.","type":"string"}},"required":["session"],"type":"object"},"name":"check_change"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Boot an iOS simulator or Android emulator by name (e.g. \"iPhone 17 Pro\", \"Pixel_8\") or id, and wait until it is up. Returns the device id to pass to run_target as deviceId. Call with no name to list what can be booted.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"cwd":{"type":"string"},"name":{"description":"Device name, an unambiguous part of it, or its id.","type":"string"}},"type":"object"},"name":"boot_device"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Block until a session reaches a state. Use after run_target or hot_restart instead of polling read_logs.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"session":{"type":"string"},"timeoutMs":{"description":"Default 60000, capped at 900000 (15 minutes, enough for a first native build).","type":"number"},"until":{"anyOf":[{"enum":["running","stopped","url"],"type":"string"},{"properties":{"log":{"description":"Case-insensitive regular expression matched against new log lines.","type":"string"}},"required":["log"],"type":"object"}],"default":"running"}},"required":["session"],"type":"object"},"name":"wait_for"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Cheap structured overview -- call this before deciding what to do next.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"session":{"type":"string"}},"required":["session"],"type":"object"},"name":"session_summary"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Run proof verification and return a zip with screenshots, network call counts, response times and logs.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"allow":{"description":"Comma-separated regexes allowed in noErrors check.","type":"string"},"appearance":{"description":"Comma-separated: light,dark","type":"string"},"branch":{"description":"Branch to verify in an isolated worktree.","type":"string"},"checkout":{"description":"Existing worktree to verify.","type":"string"},"checks":{"description":"Comma-separated checks: running,noErrors,noFailedRequests,screenshot","type":"string"},"cwd":{"type":"string"},"devices":{"description":"Comma-separated device names, e.g. \"iPhone SE,iPhone 16 Pro Max\".","type":"string"},"keep":{"description":"Leave sessions running after the proof.","type":"boolean"},"locale":{"description":"Comma-separated locale codes","type":"string"},"out":{"description":"Bundle output directory.","type":"string"},"route":{"description":"Deep link or URL to open on each device before capture.","type":"string"},"settleMs":{"description":"Milliseconds to wait after navigation before screenshot (default 2000).","type":"number"},"target":{"description":"Target name or unambiguous substring.","type":"string"},"textScale":{"description":"Comma-separated scales, e.g. 1.0,1.5","type":"string"},"timeoutMs":{"description":"Per-cell running timeout (default 120000).","type":"number"}},"required":["target"],"type":"object"},"name":"run_proof"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List past proof bundles, newest first.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"description":"Maximum entries (default 20).","type":"number"}},"type":"object"},"name":"list_proofs"},{"_meta":{"ui":{"resourceUri":"ui://baton/dashboard.html"},"ui/resourceUri":"ui://baton/dashboard.html"},"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Show a live Baton control panel in the chat: every running app with its simulator or URL, status, CPU and memory; per-app Reload, Restart, Pause/Resume, Bring to front, Logs, Screenshot and Stop; quick actions for all apps; and New run (pick a project, target and device, or boot a simulator). Use when the user asks to see or show Baton, their runs or simulators.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"show_dashboard","title":"Show Baton"},{"_meta":{"ui":{"resourceUri":"ui://baton/dashboard.html","visibility":["app"]}},"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Used by the Baton card: refresh; catalog (projects and devices for New run); run a project target on a device; boot a device; logs, reload, restart, pause, resume, front, screenshot, stop or dismiss (forget a finished run) one session; or reload/restart/pause/resume/front/stop all. Returns the card state.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"action":{"enum":["refresh","catalog","run","boot","logs","reload","restart","pause","resume","front","screenshot","stop","dismiss","reload_all","restart_all","pause_all","resume_all","front_all","stop_all"],"type":"string"},"device":{"type":"string"},"root":{"type":"string"},"session":{"type":"string"},"target":{"type":"string"}},"required":["action"],"type":"object"},"name":"dashboard_action","title":"Baton card action"}]}}}
