{"ok":true,"name":"run_code_in_browser","description":"Run a TypeScript snippet inside the running app's preview document in the user's open Floot editor and return the string it returns. `document` and `window` are the app's own DOM: measure elements, read computed styles and rendered output, or click a button and read the result. Runs at the project root, so project files import by relative path. The same `_floot` helpers as run_code_in_vm are available. Needs the project open in the editor (fails fast otherwise); prefer run_code_in_vm when the DO","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["projectId","code"],"properties":{"code":{"type":"string","description":"A TypeScript module that exports a default async function returning a string; that string is the tool result. Runs at the project root, so import other files by relative path. No top-level `return` (it's a module, not a function body) and no React hooks (not a component). Example:\n\nexport default async function () {\n  const el = document.querySelector(\"main\");\n  return JSON.stringify({ width: el?.clientWidth ?? null });\n}"},"projectId":{"type":"string"}},"additionalProperties":false},"serverUrl":"https://mcp.floot.com/mcp","transport":"http","handshake":"ok","host":"floot.com","score":38,"grade":"D","auth":"oauth","lastScannedAt":"2026-10-30T13:09:37.977Z","stale":false,"permalink":"https://agentboardai.app/mcp/floot.com/run_code_in_browser","page":"https://agentboardai.app/site/floot.com"}