Contents

List Library

library_list · Nodes · Documents

Lists Library items: the workspace, one folder, or the unfiled items.

Lists Library items: the whole workspace, one folder, or the unfiled items. Documents, folders, and files are all listed; kind tells them apart.

Config:

  • agent_visible_only - only items AI agents can see
  • limit - maximum results; unset returns every match. It counts only items that pass every other filter.
  • path - folder to list, as folder slugs outermost first: the same array create_text takes and an item's path reports. [] is the workspace root. Unset (null) lists every item in the workspace, unfiled ones included.
  • recursive - with path, also list everything in folders nested under it. Default false: only the folder's direct children. path: [] with recursive: true lists every filed item, leaving out the unfiled ones.
  • unfiled - list only the unfiled items, shown in the Library as the Other folder. Leave path unset with it; setting both fails validation.

Inputs:

  • trigger - runs the node.
  • path - optional. A wired array of folder slugs replaces the configured path and unfiled for that run; null keeps the configuration.

A path segment may be a folder's current slug, an older slug, or its ULID. A segment that names no folder, or a folder that is not inside the segment before it, fails the node rather than listing nothing.

Output: documents - array of item summaries: id, slug, name, path (null when unfiled), kind (document, folder, or file), object_id (a file's stored object), icon, color, agent_visible, ai_access_policy, processing_status, current_data_id, deleted_at, created_at, updated_at. No content; read it with Library Get or Library (get).

Everything under a reports folder:

{ "library_list": { "path": ["reports-a1b2c3"], "recursive": true } }

The unfiled items:

{ "library_list": { "unfiled": true } }

Inputs

  • triggerRequired
  • pathOptional

Outputs

  • documents

Configuration

FieldTypeRequiredDescription
agent_visible_onlybooleanNo
limitintegerYes
pathnullable<array<string>>NoFolder to list, as folder slugs outermost first; an empty list is the workspace root. Disabled lists every item in the workspace.
recursivebooleanNoAlso list items in folders nested under the path, not only its direct children
unfiledbooleanNoList the unfiled items, shown in the Library as the Other folder: files and documents in no folder. Leave path disabled with it.
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).