{"record":{"id":"d53c4c9e4aa2599a","repo":"remotion-dev/remotion","slug":"the-current-composition-is-a-still-and-cannot-play","errorCode":null,"errorMessage":"The current composition is a still and cannot play.","messagePattern":"The current composition is a still and cannot play\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"warning","filePath":"packages/studio/src/components/WebMcp.tsx","lineNumber":1527,"sourceCode":"\t\t\t\t{\n\t\t\t\t\tname: 'play',\n\t\t\t\t\ttitle: 'Play Studio composition',\n\t\t\t\t\tdescription:\n\t\t\t\t\t\t'Start playing the current Remotion Studio composition from the current frame.',\n\t\t\t\t\tinputSchema: {\n\t\t\t\t\t\ttype: 'object',\n\t\t\t\t\t\tproperties: {},\n\t\t\t\t\t\tadditionalProperties: false,\n\t\t\t\t\t},\n\t\t\t\t\tannotations: {readOnlyHint: false},\n\t\t\t\t\texecute: () => {\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 (getCurrentDuration() <= 1) {\n\t\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t\t'The current composition is a still and cannot play.',\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (Internals.timeValueRef.current === null) {\n\t\t\t\t\t\t\tthrow new Error('Studio playback controls are not ready.');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tplay();\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\tplaying: true,\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{signal: controller.signal},\n\t\t\t),\n\t\t\tmodelContext.registerTool(","sourceCodeStart":1509,"sourceCodeEnd":1545,"githubUrl":"https://github.com/remotion-dev/remotion/blob/b2f4e34732f3c6c222ea029413e22dc402218cd7/packages/studio/src/components/WebMcp.tsx#L1509-L1545","documentation":"The play tool refuses to play when getCurrentDuration() <= 1, i.e. the current composition is a still (single frame) with no animation to play.","triggerScenarios":"Calling play while a still composition (<Composition ... durationInFrames={1}> or a <Still>) is selected.","commonSituations":"Automations that assume a video composition but the user has a Still open.","solutions":["Switch to an animated (multi-frame) composition before calling play","Use a still-appropriate tool (e.g. frame navigation) instead of play"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":"const {durationInFrames} = await getCompositionTool();\nif (durationInFrames <= 1) skipPlay();","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Check composition duration before calling play","Branch logic for stills vs videos"],"tags":["mcp","playback","still"],"backgroundTag":"invalid-operation-for-media-type","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"}