Convert Timeline Time
convert_timeline_timeConvert exact Premiere timeline values between ticks, frames, samples, seconds, and timecode using rational frame rates and selectable rounding, including drop-frame.
Instructions
Convert exact Premiere tick strings, rational frames, samples, decimal seconds and signed/drop-frame timecode locally. Nearest ties round away from zero; intervals use inclusive start and exclusive end. No floating-point tick parsing or host dispatch.
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": {
"value": "<value>",
"from": "<from>",
"to": "<to>",
"frame_rate": "<frame_rate>"
},
"name": "convert_timeline_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Output unit. | |
| from | Yes | Input unit. | |
| value | Yes | Exact decimal ticks/frame/sample/seconds or timecode string. | |
| rounding | No | Rounding policy; default nearest. | |
| drop_frame | No | Use semicolon drop-frame timecode at30000/1001 or60000/1001. | |
| frame_rate | Yes | Exact rational frames per second; e.g. 30000/1001. | |
| sample_rate | No | Required for sample input. | |
| expected_cep_target | No | Optional reviewed CEP sequence/clip identity and exact tick ranges. Checked before every generated command; UXP refuses this CEP-only guard. | |
| expected_project_path | No | Optional absolute saved-project path. Every generated CEP command refuses before its body when the active project differs or is unsaved. UXP commands refuse this CEP-only guard; local-only tools do not inspect Premiere. Omit to keep existing behavior. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool completed successfully. | |
| data | No | Tool-specific result data when ok is true; on failure, diagnostic detail when the tool provides it. | |
| tool | Yes | The registered MCP tool name. | |
| error | No | Failure detail when ok is false. | |
| receipt | No | Versioned common mutation receipt; success never implies rendered verification. | |
| idempotency | No | Present when idempotency_key deduplicated this call: replayed is true when the original outcome was returned instead of running again. |