focus_session_document
Make document_id the focused document (the editor's active document and the default edit
target). Accepts either the session slot id OR the permanent document id (the UUID shown by
list_documents/Files, returned as durable_document_id by list_session_documents). Persists
the outgoing focused document into the session's
document map and returns the now-focused document's HTML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| document_id | Yes | ||
| include_html | No | 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. | |
| authorization | No |