Read Document
read_documentRead the text content of a document from a Scrivener project. Supports plain text with word-range paging or rich formatted text with styling preserved.
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 |