color_set_cdl
Apply an ASC CDL primary correction to a color node using slope, offset, power, and saturation values to adjust a clip's look programmatically.
Instructions
Apply an ASC CDL to a node: slope (≈ gain), offset, power (≈ inverse gamma), saturation. This is the scriptable primary correction.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "color_set_cdl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| power | No | ||
| slope | No | ||
| itemId | No | Timeline item unique id (from timeline_get_clips) | |
| offset | No | ||
| preserve | No | Create a new local grade version first so the previous grade can be restored | |
| timeline | No | Timeline name or id (default: current timeline) | |
| itemIndex | No | 1-based position of the clip on the track (transitions are not counted) | |
| nodeIndex | No | 1-based color node index | |
| trackType | No | video | |
| saturation | No | ||
| trackIndex | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True only when DaVinci Resolve confirmed the operation. | |
| data | No | ||
| tool | Yes | ||
| error | No | ||
| source | No | Where the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone. | |
| status | Yes | ||
| message | Yes | ||
| warnings | Yes |