---
related_nodes: ["library", "library_list", "read_media"]
---

Reads one Library item by slug or ULID: a document with its content, a folder, or a file. Filed and unfiled items alike; renamed items resolve by their old slugs too.

**Config:**

- `document_id` - the item's slug or ULID. A value wired into the `document_id` input overrides it.
- `blocks` - also emit a document's block tree on `blocks`. Default `true`; disable for Markdown-only retrieval.

**Inputs:**

- `trigger` - runs the node.
- `document_id` - optional slug or ULID; overrides the configured one when non-empty.

**Output:** `document` - `{ id, slug, name, path, kind, object_id, content, blocks? }`.

- `kind` is `document`, `folder`, or `file`.
- `path` is the folder slugs outermost first; `null` for an unfiled item (the Library's Other folder).
- `object_id` is a file's stored object; `null` for documents and folders.
- `content` is the document rendered as Markdown; `null` for a folder or file, as is `blocks`.

For image/PDF files, pass `object_id` to `Read Media` to load bytes into the workflow.

```json
{ "library_get": { "document_id": "weekly-briefing-a1b2c3", "blocks": false } }
```
