{"record":{"id":"f77503068c32eef6","repo":"remotion-dev/remotion","slug":"sequence-sequenceid-not-found-in-the-current-co","errorCode":null,"errorMessage":"Sequence ${sequenceId} not found in the current composition.","messagePattern":"Sequence (.+?) not found in the current composition\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/studio/src/components/WebMcp.tsx","lineNumber":982,"sourceCode":"\t\t\t\t\texecute: ({sequenceId}) => {\n\t\t\t\t\t\tif (typeof sequenceId !== 'string' || sequenceId.length === 0) {\n\t\t\t\t\t\t\tthrow new Error('sequenceId must be a non-empty string.');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst compositionId = currentCompositionRef.current;\n\t\t\t\t\t\tif (compositionId === null) {\n\t\t\t\t\t\t\tthrow new Error('No composition is currently selected.');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!canSelectRef.current) {\n\t\t\t\t\t\t\tthrow new Error('Studio sequence selection is unavailable.');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst timelineTrack = getCurrentTimeline().find(\n\t\t\t\t\t\t\t(candidate) => candidate.sequence.id === sequenceId,\n\t\t\t\t\t\t);\n\t\t\t\t\t\tif (!timelineTrack) {\n\t\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t\t`Sequence ${sequenceId} not found in the current composition.`,\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst selection = getTimelineSelectionFromNodePathInfo(\n\t\t\t\t\t\t\ttimelineTrack.nodePathInfo,\n\t\t\t\t\t\t);\n\t\t\t\t\t\tif (selection === null) {\n\t\t\t\t\t\t\tthrow new Error(`Sequence ${sequenceId} cannot be selected.`);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tselectItems([selection], {reveal: true});\n\t\t\t\t\t\treturn Promise.resolve({\n\t\t\t\t\t\t\tcurrentContent: currentContentRef.current,\n\t\t\t\t\t\t\tselectedSequence: serializeSequence(timelineTrack),\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t},","sourceCodeStart":964,"sourceCodeEnd":1000,"githubUrl":"https://github.com/remotion-dev/remotion/blob/b2f4e34732f3c6c222ea029413e22dc402218cd7/packages/studio/src/components/WebMcp.tsx#L964-L1000","documentation":"Even when the sequence track exists, Studio must be able to derive a valid timeline selection from the track's nodePathInfo. If that mapping returns null (the track cannot be selected as an item), this error is thrown.","triggerScenarios":"Calling selectSequence on a track whose nodePathInfo cannot produce a selection — e.g. a root-level or synthetic track that is not individually selectable in the timeline UI.","commonSituations":"Selecting a top-level composition wrapper track or a track created by Studio internals rather than a user <Sequence>.","solutions":["Target a concrete <Sequence> element's id instead of the composition root track","Pick a different sequence that corresponds to an actual JSX node","Update Remotion — selection derivation for some tracks may be supported in newer versions"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"const track = getCurrentTimeline().find((t) => t.sequence.id === sequenceId);\nif (getTimelineSelectionFromNodePathInfo(track.nodePathInfo) === null) { /* choose a selectable sequence instead */ }","typeGuard":null,"tryCatchPattern":"catch (e) { if (e.message.includes('cannot be selected')) { /* fall back to selecting a nested child sequence */ } }","preventionTips":["Target leaf-level <Sequence> nodes rather than root/synthetic tracks"],"tags":["studio","mcp","sequence","selection"],"backgroundTag":"operation-not-supported","analyzedSha":"b2f4e34732f3c6c222ea029413e22dc402218cd7","analyzedAt":"2026-08-28T15:39:09.316Z","contentChangedAt":"2026-08-28T15:39:09.316Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}