Contents

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 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.

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

Inputs

  • triggerRequired
  • document_idOptional

Outputs

  • document

Configuration

FieldTypeRequiredDescription
document_idstringNoThe item's slug or ULID, filed or unfiled. A value wired into the document_id input overrides it.
blocksbooleanNoAlso emit a document's block tree on `blocks`
base_configrecordNoShared 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).