Set grade
set_gradeModify a single DaVinci Resolve node's color grade by applying CDL slope/offset/power/saturation, LUT, labels, node color, enabled state, or cache; unspecified values keep their current settings.
Instructions
Change one node: brightness and color with CDL numbers (slope, offset, power, saturation), LUT, label, color, on/off, cache. Every change is read back. Values you leave out keep their current value. Look at the result with export_frame. Examples: {"item":"ti:1","slope":[1.1,1.0,0.95],"saturation":1.1} | {"item":"ti:1","lut":"resolve-studio-mcp/looks/slog3_to_rec709.cube"}
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item": "ti:1",
"slope": [
1.1,
1,
0.95
],
"saturation": 1.1
},
"name": "set_grade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lut | No | LUT or DCTL path relative to Resolve's LUT folder; '' removes it | |
| item | No | Timeline clip or photo handle, or exact clip name; 'current' = clip under the playhead | current |
| node | No | ||
| cache | No | ||
| color | No | Node color; '' removes it | |
| label | No | ||
| layer | No | ||
| power | No | CDL gamma per channel [r, g, b]; 1 = unchanged | |
| scope | No | clip = the clip's own nodes, timeline = nodes for the whole timeline, group_pre/group_post = nodes of the clip's color group | clip |
| slope | No | CDL gain per channel [r, g, b]; 1 = unchanged | |
| offset | No | CDL lift per channel [r, g, b]; 0 = unchanged | |
| dry_run | No | true: only show the plan and get a confirm_token. false: do it, together with that token. | |
| enabled | No | ||
| timeline | No | Handle (tl:...) of the timeline to change, from list_timelines or state_snapshot. | |
| saturation | No | ||
| confirm_token | No | From the dry run of exactly this call. Works once, for five minutes. |