Agenda
Context, approach, and next steps.
"}'
write_html returns inserted node geometry, warnings, and recommendedNextCall for get_screenshot. It defaults to mode "replace", which replaces the selected node or root canvas content when no targetNodeId is passed. Pass targetNodeId "root" to force root canvas replacement even when another node is selected. Replace mode accepts one or more root HTML elements. Use mode "insert-children" to append top-level objects to root or add nodes inside an existing frame/flex-frame. It uses one conversion path and preserves normalized CSS intent: property names become camelCase, authored CSS values stay CSS strings, mixed direct text is preserved in flow order, and data-coview-name sets the Coview layer name. Rendering computes browser-like text flow and intrinsic sizes; write_html does not write inferred text width/height or expand clipped text into node data.
Direct edit calls return the persisted version plus method-specific ids or geometry. They do not repeat the request document id, current selection, or low-level operation summary. Direct get_screenshot returns JSON with image metadata and base64 data, not MCP content blocks.
For private documents, request_access_token creates a short-lived token from an authenticated context. If the agent needs the user to approve access, request_user_validation returns a consent URL and pending bearer token; the token only becomes active after the user approves the consent screen.
curl -s https://coview.dev/api/agents/get_node \
-H "content-type: application/json" \
-d '{"documentId":"my-document-id","nodeId":"root"}'
Remote MCP server:
https://coview.dev/mcp
If your runtime supports remote MCP and does not already have callable Coview MCP tools, register or connect this remote MCP server URL before using MCP tools.
- Claude Code: claude mcp add --transport http coview https://coview.dev/mcp
- Generic Streamable HTTP MCP config: add a server named "coview" with url "https://coview.dev/mcp".
- OpenAI Agents SDK: configure a hosted MCP tool with serverLabel "coview" and serverUrl "https://coview.dev/mcp".
The document changes API under https://coview.dev/api/v1/documents/... is for the Coview app runtime. Agents should use the direct agent API or MCP tools above.
Do not infer the document from bundled asset names in index.html. The document is identified by the URL path id and edited through one of the high-level agent access options above.