item_get_duration
Retrieve the duration of a named timeline item in frames. Specify track type and index to target the correct clip.
Instructions
Return the duration of a timeline item in frames.
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": {
"item_name": "<item_name>"
},
"name": "item_get_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_name | Yes | Name of the item. | |
| track_type | No | Track type — "video" or "audio". | video |
| track_index | No | 1-based track number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |