Contents

View Library File

library_view · Tools · Documents

Open a Library file: PDFs and supported images are shown, text files read

Parameters

NameTypeRequiredDescription
identifierstringYesThe item's id (ULID) or slug, as library_list, library_search and library_get return them.

View Library File Tool#

library_view opens a Library file into the conversation so the agent can see it.

When to Use#

The agent uses it to look at an image or PDF, or read a text file, stored in the Library. Documents are read with library_get instead.

Parameters#

Parameter Type Required Description
identifier string Yes The item's id (ULID) or slug, as library_list, library_search and library_get return them

Returns#

The result contains item_id, the file's details in attachment, and a view:

view Result
shown A PDF or an image (PNG, JPEG, GIF or WebP up to 5 MB) follows in the conversation after the tool results. The tool shows the existing Library file without making a copy.
text The text field contains UTF-8 text without NUL bytes, cut at 100,000 characters. A note marks a cut.
not_viewable The result includes a reason and a note explaining why the file can't be displayed. Reasons include too_large (a file other than an image or PDF over 50 MB; PDFs have no size limit), image_too_large, image_type, audio, video and binary.

Notes#

  • A document or folder is refused: '<name>' is a document; library_view opens files. Read it with library_get
  • An unknown or trashed identifier is refused with Library item not found: <identifier>
  • Refused when the item's AI access policy denies reads: AI access denied: this resource is not readable by AI tools.
  • Off by default on the hosted MCP server
  • Risk: read