Read Document
read_documentRetrieve the text content of a Scrivener document in plain or formatted style. Page through long documents using word offset and limit.
Instructions
Read the text of a single document. By default returns plain text; set format to "formatted" to get rich text with styling and structure preserved. Use offset and limit to page through long documents by word range instead of returning the whole thing. Use get_document_info when you only need metadata, or search/semantic_search to find content across many documents. Requires an open project and a valid document id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of words to return from offset. Omit to read to the end. | |
| format | No | "plain" (default) returns unstyled text and supports offset/limit paging. "formatted" returns rich text with styling and structure preserved (paged reading does not apply). | |
| offset | No | Zero-based word index to start reading from. Default 0. Plain format only. | |
| documentId | Yes | Scrivener document UUID, as returned by get_structure (a binder item "id"). |