Work with Attachments

Last modified by gabrielc on 2026/10/20 17:06

Steps

Have a connected assistant read the files attached to a page, and attach new ones where an administrator has enabled the write tools (see Agent Authentication for what it may open and change).

  1. Ask the assistant to read an attachment, naming the page and the file. It reports the file's metadata first, then its content: text inline, PDF and office documents as extracted text, images up to 2 MB as viewable images, and any other type as metadata with a download link.

    A terminal session in which the assistant reads a text attachment and reports its metadata and its three lines, highlighted

  2. Ask it to attach a file, and check what it reports: the file it saved, its size, and the page's new version. It can send a text file or a small binary file.

    A terminal session in which the assistant attaches release-checklist.txt to a page and reports the new page version 1.2, highlighted

FAQ

Can it read a PDF or an office document?

Yes. It gets the text the wiki extracts from the file: the words are there, the layout, the formatting and the images are not.

Can it attach a large file?

No. This door is for small files: text, or a small binary file encoded in the request. Attach anything bigger through the page's own "Attachments" tab.

Can it delete an attachment?

Yes, where the delete tools are enabled. The attachment keeps its own history and goes to the attachment recycle bin, so it can be restored from the wiki. A wiki without an attachment recycle bin refuses the deletion instead.

Related

Get Connected