Switch which document is focused in a multi-document session.
Make document_id the focused document (the editor’s active document and the default edit target). Accepts either the session slot id OR the durable documents.id UUID (the id shown by list_documents/Files). Persists the outgoing focused document into the session’s document map and returns the now-focused document’s HTML.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Query Parameters
Include each document's full reassembled HTML body. Default false (token-light — recommended for AI agents enumerating or switching tabs): returns only ids, title, section count, focused flag, and page setup, omitting the body which can be hundreds of KB per document. The web app passes true to render document content.
Response
Successful Response

