Load Text File (Advanced) v7.0 - Akki
Load a project file from a dropdown instead of typing paths
- text_content
The Load Text File (Advanced) v7.0 is the friendlier of the pack's two text loaders. Instead of typing a full file path like the Simple loader, you pick a directory, choose an extension_filter, and select the file from a dropdown. It's the node you reach for when you're browsing your Akki project output for a story, a bible, or a shot list rather than memorizing paths.
How the dropdown works
This is the "advanced" part, and it's a bit of a delicate one. The file list is populated by a companion JavaScript file that lives in the pack's js folder - it talks to a small API endpoint the pack registers on ComfyUI's server (/akkinodes/get_project_files), which scans the chosen directory relative to ComfyUI's output folder and returns matching files. Type the directory, pick the extension, and the dropdown fills with everything that matches. Select a file and it loads.
The source comment spells out the division of labor: "An advanced file loader with a dynamic UI controlled by the accompanying JS file." No JS, no dropdown - which is a real-world gotcha, because the pack's __init__.py declares a WEB_DIRECTORY = "js" that isn't present in the shipped tree at HEAD. If your install doesn't have the js folder (some clones/managers drop it), the dropdown stays empty and you get a blank string out of the node.
Inputs and outputs
Required: directory (default AKKILLM/Project01) and extension_filter (txt, csv, md, json, log). Optional: file - the dropdown, empty until the JS populates it.
One output: text_content, a STRING with the file's contents, ready to wire into any text-consuming node. If no file is selected it returns an empty string rather than erroring.
Install and the fallback
Pack install: ComfyUI Manager search "AkkiNodes LLM Suite", or git clone https://github.com/routhakash/AkkiNodes-LLM-Suite-for-ComfyUI into custom_nodes, install.bat as admin on Windows, restart.
If the dropdown comes up empty or the node just outputs "" - which is the most common complaint with this one - don't fight the JS. Just grab the Load Text File (Simple) node, which takes a plain path and does exactly the same job with zero moving parts. The Simple loader is the boring, reliable one; Advanced is for when the dynamic UI cooperates. Both read relative to the ComfyUI output directory, so AKKILLM/Project01/story.txt works in either.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| directory | STRING | AKKILLM/Project01 | — |
| extension_filter | COMBO | 5 options: txt, csv, md, json, log | |
| fileopt | COMBO | 0 options: |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text_content | STRING | — |