Get Library Item
library_get · Nodes · Documents
Reads one Library item: a document with its content, a folder or a file.
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 thedocument_idinput overrides it.blocks- also emit a document's block tree onblocks. Defaulttrue; 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? }.
kindisdocument,folder, orfile.pathis the folder slugs outermost first;nullfor an unfiled item (the Library's Other folder).object_idis a file's stored object;nullfor documents and folders.contentis the document rendered as Markdown;nullfor a folder or file, as isblocks.
For image/PDF files, pass object_id to Read Media to load bytes into the workflow.
{ "library_get": { "document_id": "weekly-briefing-a1b2c3", "blocks": false } }
Inputs
triggerRequireddocument_idOptional
Outputs
document
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
document_id | string | No | The item's slug or ULID, filed or unfiled. A value wired into the document_id input overrides it. |
blocks | boolean | No | Also emit a document's block tree on `blocks` |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |