How the Video Session System works
mainThe session system enables multi-pass, context-aware video analysis by persisting extracted data between tool calls.
Identification
Videos are identified by a SHA-256 hash of the first 64KB of the file plus the total file size. This ensures that the same video is recognized even if moved between directories.
Persistence and Configuration
enable_index: true: Extracted data (manifests, analysis, and frames) is stored in~/.claude-video-vision/sessions/{video-hash-12chars}/. This allows for efficient re-use of frames and analysis across different tool calls.enable_index: false(default): Behavior remains stateless; all data is stored in/tmp/and deleted after the tool returns.
Lifecycle
- Sessions are created on the first call to
video_watch,video_analyze, orvideo_detail. - Sessions are automatically cleaned up after
session_max_age_days(default: 7 days). - You can manually clear sessions using
video_configurewithclear_sessions: true.
interface Config {
enable_index: boolean; // default: false
session_max_age_days: number; // default: 7
}