Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates extraction and manipulation of story data stored in JSON format for AI artists.
The story_json_tool
is designed to facilitate the extraction and manipulation of story data stored in JSON format. This node is particularly useful for AI artists who need to access specific chapters or sections of a story without manually parsing the JSON file. By providing a straightforward interface to query and retrieve story content, it simplifies the process of working with structured story data, allowing you to focus on creative tasks rather than technical details. The primary function of this node is to read a specified chapter from a JSON file and return it in a well-formatted JSON string, making it easy to integrate with other tools and workflows.
This parameter specifies the path to the JSON file containing the story data. It can be either an absolute path or a relative path, depending on the path_type
setting. The default value is "story.json"
, which assumes the file is located in the current directory. If the path is incorrect or the file does not exist, the node will not be able to read the story data.
This boolean parameter determines whether the node is active. If set to False
, the node will not perform any operations and will return None
. The default value is True
, enabling the node to function as expected. This parameter is useful for conditionally enabling or disabling the node based on your workflow requirements.
This parameter specifies whether the path
is an absolute path or a relative path. It accepts two options: "Absolute_Path"
and "Relative_Path"
, with the default being "Relative_Path"
. This setting helps the node correctly interpret the provided file path, ensuring it can locate and read the JSON file.
The output parameter tools
is a JSON string that contains the extracted story data for the specified chapter. This output is formatted to ensure readability and ease of use, making it simple to integrate with other tools or processes. The JSON string includes the content of the requested chapter, allowing you to access and manipulate the story data as needed.
path
parameter correctly points to the JSON file containing your story data. Double-check the file path and name to avoid errors.is_enable
parameter to conditionally enable or disable the node based on your workflow needs. This can help streamline your process by only activating the node when necessary.path_type
parameter appropriately to ensure the node correctly interprets the file path. Use "Absolute_Path"
for full file paths and "Relative_Path"
for paths relative to the current directory.<path>
'path
parameter is correct and that the file exists at the specified location. Ensure the path_type
is set correctly.<chapter>
'© Copyright 2024 RunComfy. All Rights Reserved.