game_visual_shader
Create and edit Godot VisualShader graphs by adding, connecting, or disconnecting nodes, then apply changes to target shader resources.
Instructions
Create and edit VisualShader graphs: add/connect/disconnect nodes
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "game_visual_shader"
}
}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 |