visual_shader_manage
Manage VisualShader graphs in Godot by creating shaders, adding nodes, connecting ports, and inspecting the graph structure.
Instructions
VisualShader Graph Management.
Ops:
create_visual_shader(shader_type="spatial", save_path="") Create a new VisualShader resource for spatial, canvas_item, particles, etc.
add_node(shader_path, node_type="VisualShaderNodeColorConstant", shader_type_enum=0, position=[0,0]) Add a VisualShaderNode into the visual shader graph.
connect_nodes(shader_path, shader_type_enum=0, from_node=0, from_port=0, to_node=0, to_port=0) Connect two node ports in a VisualShader graph.
get_graph(shader_path, shader_type_enum=0) Inspect all nodes and connections in a VisualShader graph.
Canonical call shape: {"op": "<verb>", "params": {...}}. Flat op parameters are accepted as a compatibility alias when the client transmits them; op and session_id remain top-level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| params | No | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||