ComfyUI > Nodes > Claude Code ComfyUI Nodes > Claude Arguments Builder

ComfyUI Node: Claude Arguments Builder

Class Name

ClaudeCodeArguments

Category
claude_code/helpers
Author
christian-byrne (Account age: 2006days)
Extension
Claude Code ComfyUI Nodes
Latest Updated
2025-06-17
Github Stars
0.03K

How to Install Claude Code ComfyUI Nodes

Install this extension via the ComfyUI Manager by searching for Claude Code ComfyUI Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Claude Code ComfyUI Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Claude Arguments Builder Description

Facilitates dynamic argument creation for Claude Code via JSON, enhancing code adaptability.

Claude Arguments Builder:

The ClaudeCodeArguments node is designed to facilitate the creation of arguments for variable substitution in Claude Code commands. This node is particularly useful for AI artists who need to dynamically adjust parameters within their code without manually editing each instance. By supporting JSON input, key-value pairs, and the merging of multiple argument sets, it provides a flexible and efficient way to manage and manipulate arguments. This capability is essential for automating workflows and ensuring that your code can adapt to different contexts or requirements without extensive manual intervention. The node's primary function, build_arguments, allows you to construct these arguments seamlessly, enhancing the adaptability and scalability of your projects.

Claude Arguments Builder Input Parameters:

input_mode

The input_mode parameter determines how you will input arguments into the node. It offers three options: json, key_value, and merge. The json mode allows you to input a JSON object containing key-value pairs, which is ideal for handling multiple arguments at once. The key_value mode is suitable for adding individual arguments by specifying a key and its corresponding value. The merge mode enables you to combine multiple sets of arguments, which is useful when you need to integrate different argument configurations. The default value is json, and this parameter is crucial for defining the method of argument input, impacting how the node processes and outputs the arguments.

json_arguments

The json_arguments parameter is used when the input_mode is set to json. It allows you to input a JSON object containing argument key-value pairs. This parameter supports multiline input, making it easier to manage complex argument structures. The default value is a JSON object with example arguments: {\n "PROJECT_NAME": "MyProject",\n "LANGUAGE": "Python"\n}. This parameter is essential for providing a structured and comprehensive set of arguments, which the node will use for variable substitution in your code.

key

The key parameter is relevant when the input_mode is set to key_value. It specifies the argument key that you want to add or modify. The default value is an empty string, and it is important for defining the specific argument you wish to work with. This parameter allows for precise control over individual arguments, enabling you to tailor the argument set to your specific needs.

value

The value parameter works in conjunction with the key parameter when the input_mode is key_value. It specifies the value associated with the argument key. Like the key parameter, its default value is an empty string. This parameter is crucial for setting or updating the value of a specific argument, allowing for detailed customization of your argument set.

base_arguments

The base_arguments parameter is used in the merge input mode. It represents the base set of arguments that you want to merge with additional arguments. This parameter is important for combining different argument configurations, ensuring that your final argument set includes all necessary parameters. It allows for the integration of existing argument sets, facilitating the reuse and extension of argument configurations.

merge_arguments

The merge_arguments parameter is also used in the merge input mode. It specifies the additional arguments that you want to merge with the base_arguments. This parameter is essential for expanding your argument set by incorporating new or modified arguments. It provides flexibility in managing and updating your argument configurations, ensuring that your code can adapt to changing requirements.

Claude Arguments Builder Output Parameters:

CLAUDE_ARGUMENTS

The CLAUDE_ARGUMENTS output parameter represents the constructed set of arguments that the node has built based on the input parameters. This output is crucial for passing the generated arguments to other nodes or components within your workflow, enabling dynamic variable substitution and enhancing the flexibility of your code execution.

STRING

The STRING output parameter provides a JSON representation of the constructed arguments. This output is useful for debugging or logging purposes, allowing you to verify the structure and content of the arguments generated by the node. It ensures transparency and traceability in your workflow, helping you to understand and optimize the argument construction process.

Claude Arguments Builder Usage Tips:

  • When using the json input mode, ensure that your JSON object is correctly formatted to avoid parsing errors. Utilize the multiline feature for better readability and management of complex argument sets.
  • In key_value mode, double-check that both the key and value parameters are correctly specified to ensure that the intended argument is added or updated accurately.
  • Use the merge mode to combine argument sets from different sources, which can be particularly useful when integrating configurations from multiple projects or components.

Claude Arguments Builder Common Errors and Solutions:

Invalid JSON format

  • Explanation: This error occurs when the JSON object provided in the json_arguments parameter is not properly formatted.
  • Solution: Ensure that your JSON object is correctly structured, with matching braces and properly quoted keys and values. Use a JSON validator to check for syntax errors.

Missing key or value in key_value mode

  • Explanation: This error happens when either the key or value parameter is left empty in key_value mode.
  • Solution: Make sure to provide both a key and a value when using the key_value input mode to avoid incomplete argument definitions.

Merge conflict in merge mode

  • Explanation: This error can occur if there are conflicting keys in the base_arguments and merge_arguments sets.
  • Solution: Review the argument sets to identify and resolve any conflicts, ensuring that the final merged set contains the desired values for each key.

Claude Arguments Builder Related Nodes

Go back to the extension to check out more related nodes.
Claude Code ComfyUI Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.