game_visual_shader
Create visual shader graphs by adding nodes, connecting ports, and disconnecting links. Apply the finished shader to Godot materials.
Instructions
Create and edit VisualShader graphs: add/connect/disconnect nodes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action: create, add_node, connect, disconnect, get_nodes, apply | |
| toNode | No | Destination node ID (for connect/disconnect) | |
| toPort | No | Destination port index | |
| fromNode | No | Source node ID (for connect/disconnect) | |
| fromPort | No | Source port index | |
| nodePath | No | Target node path (for apply) | |
| position | No | Node position {x, y} (for add_node) | |
| shaderId | No | Shader resource ID (for multi-shader scenes) | |
| nodeClass | No | VisualShaderNode class name (for add_node) | |
| shaderType | No | Shader type: spatial, canvas_item, particles, sky, fog |