Get Document Info
get_document_infoRetrieve metadata for a Scrivener document, including title, word count, synopsis, label, and custom fields. Use this to inspect document properties without loading the full text.
Instructions
Return metadata for a single document without its body text: title, type, word count, synopsis, label, status, parent, and custom metadata. Use this to inspect a document or to read its word count cheaply; call read_document when you need the actual prose, or get_structure for the whole binder. Requires an open project and a valid document id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | Scrivener document UUID, as returned by get_structure (a binder item "id"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Ancestor chain from the binder root to the document. | |
| document | Yes | The document metadata (body text excluded). | |
| location | Yes | Where the document lives: "active", "trash", or "unknown". | |
| metadata | Yes | Derived metadata map (synopsis, notes, keywords, status, label) as strings. |