Apply a LUT
apply_lutApply a .cube LUT to color grade a video. Pre-validates the LUT to prevent ffmpeg errors, and strength adjusts blending with the original.
Instructions
Apply a .cube colour lookup table.
The LUT is parsed and validated before the job is queued — declared size, row count and numeric content — because ffmpeg reports a malformed cube with an error that gives no hint what is wrong. Use 'strength' below 1.0 to blend the graded result back against the original.
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": {
"input_path": "<input_path>",
"lut_path": "<lut_path>"
},
"name": "apply_lut"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encode | No | ||
| lut_path | Yes | Path to a .cube LUT file. | |
| strength | No | Blend against the ungraded image; 1.0 applies the LUT fully. | |
| input_path | Yes | Path to the source media file. | |
| output_path | No | Destination file. If omitted, the output is written into the job's workspace directory and its path is returned by job_result. | |
| interpolation | No | Sampling mode. Tetrahedral is the usual choice for film LUTs. | tetrahedral |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |