remotion-dev/remotion · error · Error

No composition is currently selected.

Error message

No composition is currently selected.

What it means

selectSequence requires Studio's sequence selection capability to be available (canSelect). If the current context does not support selecting sequences (e.g. the timeline/selection API is unavailable for the current composition), it throws.

Source

Thrown at packages/studio/src/components/WebMcp.tsx:971

						properties: {
							sequenceId: {
								type: 'string',
								minLength: 1,
								description: 'The sequence ID returned by get_sequences.',
							},
						},
						required: ['sequenceId'],
						additionalProperties: false,
					},
					annotations: {readOnlyHint: false},
					execute: ({sequenceId}) => {
						if (typeof sequenceId !== 'string' || sequenceId.length === 0) {
							throw new Error('sequenceId must be a non-empty string.');
						}

						const compositionId = currentCompositionRef.current;
						if (compositionId === null) {
							throw new Error('No composition is currently selected.');
						}

						if (!canSelectRef.current) {
							throw new Error('Studio sequence selection is unavailable.');
						}

						const timelineTrack = getCurrentTimeline().find(
							(candidate) => candidate.sequence.id === sequenceId,
						);
						if (!timelineTrack) {
							throw new Error(
								`Sequence ${sequenceId} not found in the current composition.`,
							);
						}

						const selection = getTimelineSelectionFromNodePathInfo(
							timelineTrack.nodePathInfo,
						);

View on GitHub (pinned to b2f4e34732)

Solutions

  1. Retry after Studio is fully loaded and a composition is displayed
  2. Ensure you are in the editor view where timeline selection is possible
  3. Update Studio — selection availability depends on recent Studio versions
Defensive patterns

Strategy: retry

Validate before calling

if (!canSelect) { /* wait for Studio editor to be ready, then retry */ }

Try / catch

catch (e) { if (e.message === 'Studio sequence selection is unavailable.') { await waitForReady(); await retry(); } }

Prevention

When it happens

Trigger: Calling selectSequence when Studio cannot perform selection in the current mode, such as before the editor is ready or in a context where selection is disabled.

Common situations: MCP automation hitting Studio during startup or in a state where Visual Mode/timeline selection is not active.

Related errors


AI-assisted analysis of remotion-dev/remotion@b2f4e34732 (2026-08-28). Data as JSON: /api/errors/b4e9cdacd9cddd29. Report an issue: GitHub.