Get Document Info
get_document_infoRetrieve document metadata (title, word count, synopsis, label, status, parent, custom fields) without reading the full body text. Inspect document details efficiently.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"documentId": "<documentId>"
},
"name": "get_document_info"
}
}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. |