{"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":988,"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 (!timelineSelectionRef.current.canSelect) {\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\ttimelineSelectionRef.current.selectItems([selection], {\n\t\t\t\t\t\t\treveal: true,\n\t\t\t\t\t\t});\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});","sourceCodeStart":970,"sourceCodeEnd":1006,"githubUrl":"https://github.com/remotion-dev/remotion/blob/46a3a6bf13ca367376ff18bbb06dae2e87e0d068/packages/studio/src/components/WebMcp.tsx#L970-L1006","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":"46a3a6bf13ca367376ff18bbb06dae2e87e0d068","analyzedAt":"2026-08-28T15:39:09.316Z","contentChangedAt":"2026-08-28T15:39:09.316Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}