create_gradient
Generate a Godot Gradient resource file (.tres) by specifying output path, color stops, and interpolation mode. Useful for programmatically adding gradients to projects.
Instructions
Create Gradient .tres.
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": {
"path": "<path>"
},
"name": "create_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Output path (e.g. "gradients/fire.tres") | |
| colors | No | Array of {offset, color} objects | |
| interpolation_mode | No | linear |