fusion_set_expression
Set a SimpleExpression on a Fusion node input to drive parameter values with formulas such as time/24 or Text1.Size*2, enabling calculated animation and adjustments.
Instructions
Set a SimpleExpression on a node input (e.g. 'time/24', 'Text1.Size*2').
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": {
"node": "<node>",
"input": "<input>",
"expression": "<expression>"
},
"name": "fusion_set_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| input | Yes | ||
| itemId | No | Timeline item unique id (from timeline_get_clips) | |
| source | No | item | |
| timeline | No | Timeline name or id (default: current timeline) | |
| compIndex | No | ||
| itemIndex | No | 1-based position of the clip on the track (transitions are not counted) | |
| trackType | No | video | |
| expression | Yes | ||
| 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 |