app icon
File Tools
0.0.2

A collection of various tools for handling file object.

kurokobo/file_tools9506 installs

📦 File Tools - A collection of various tools for handling file object

✨ Overview

A collection of various tools for handling file objects:

  • Dump to JSON
    • Dump a file object as a JSON string for debugging
  • Embed as Base64
    • Convert a file to data URI format (Base64 encoded), optionally in markdown format
  • Get Download URL
    • Get a download URL for a file object, optionally as a markdown link
  • Save as File
    • Save input text or base64 encoded binary data as a file with specified file name and MIME type

🛠️ Bundled Tools

✅ Dump to JSON

This is a tool to dump a file object as a JSON string for debugging purposes. This is an example of the output:

This tool is useful for inspecting a file object.

You can choose whether to include the base64 encoded binary data in the field, by option.

✅ Embed as Base64

This is a tool to convert a file to data URI format (Base64 encoded) such as:

This tool is useful for embedding files or images directly into markdown documents, HTML pages, or any other formats that support data URIs.

If you select the format (default), the output will be a plain data URI string.
If you select the format, the output will be an image () or a link () depending on whether the file is an image or not.
You can customize the link text (or alt text for images) by using the option. If the is not provided, it will default to the file name.

The MIME type will be automatically determined based on the file name, but you can also pass a MIME type explicitly using the option.

✅ Get Download URL

This is a tool to generate a download link for a file object, either as a plain URL or in markdown format:

This tool is useful when you want to pass a file download link to another node, or when you want to embed a file download link as part of a nicely formatted chatbot response.

If you select the format (default), the output will be a plain URL string.
If you select the format, the output will be a link () with the file name or a custom text (by ).

✅ Save as File

This is a tool to save input text or base64 encoded binary data as a file. You can specify the file name, MIME type, and the format of the content:

  • To save plain text as a file:

    • :
    • :
    • :
  • To save base64 encoded data as a file:

    • :
    • :
    • :

This tool is useful for saving generated content or decoded binary data as a downloadable file.

If you leave the MIME type empty, it will be automatically determined based on the file name. Of course, you can also specify a MIME type explicitly using the option.

When the is set to , you can also specify the encoding using the option (e.g., , , ). If not specified, it defaults to .

Related Links

CATEGORY
Tool
VERSION
0.0.2
kurokobo·11/28/2025 01:48 AM
REQUIREMENTS
Maximum memory
256MB