Apply shader effect
apply_shader_effectApplies saved or inline shader effects to a video project as a single committed edit, supporting filters, transitions, and generators; preview results before rendering.
Instructions
Put a ShaderFX effect on a project (committed at once): a saved effect_id, or inline source + manifest. "filter": target_layer_id (omit = everything below), window start_time / end_time. "transition": from_layer_id + to_layer_id, overlap duration_sec (default 0.8) on media handles. "generator": paints on its own. params by manifest name; param_keyframes animates them. Check with render_preview. Details: load_skill shaderfx-effects.
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": {
"project_id": "<project_id>"
},
"name": "apply_shader_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | [v3] Up to 16384 floats for data(i). | |
| kind | No | ||
| easing | No | [transition] Easing of progress, e.g. ease_in_out. | |
| output | No | Override the manifest output mode. | |
| params | No | Param values by manifest name, e.g. { "strength": 0.8 }. | |
| source | No | Inline WGSL (with manifest), instead of effect_id. | |
| opacity | No | Layer opacity 0..1. | |
| data_url | No | [v3] URL of a JSON array or CSV, resolved to floats at apply time. | |
| end_time | No | [filter/generator] Timeline end (s). | |
| feedback | No | [v3] { enabled, warmup_sec?, clear? }: prev(uv) reads the previous output frame. | |
| geometry | No | [v3] { mode: "quads"|"points", count }: instanced particles drawn by fn instance(i, c). | |
| manifest | No | Inline manifest (with source). | |
| textures | No | [v3] Up to 4 named textures; read with tex_<name>(uv). | |
| effect_id | No | Saved effect id. | |
| intensity | No | c.intensity (default 1). | |
| project_id | Yes | Project whose committed scene is edited. | |
| start_time | No | [filter/generator] Timeline start (s). | |
| to_layer_id | No | [transition] Incoming clip. | |
| data_columns | No | [v3] CSV data_url columns (names or 0-based indexes). | |
| duration_sec | No | [transition] Overlap length (default 0.8). | |
| from_layer_id | No | [transition] Outgoing clip. | |
| param_keyframes | No | { "<param>": [{ time, value, easing? }, …] } (≥ 2 keyframes each). | |
| target_layer_id | No | [filter] Layer whose picture src() reads. |