editor/reference/context.md
konstantin-paulus c1bc3f0085 Update package.json and README for consistency and clarity
Modified the "check" script in package.json to reference the correct "examples" directory. Updated the README to replace "video editor" with "media compositor" for improved accuracy and restructured some sentences for better readability. Removed outdated documentation files related to assets, CLI, composition, distribution, and getting started, streamlining the documentation for a more focused user experience.
2026-07-20 15:53:30 +02:00

505 B

dapi context

Essential context about the open project. Call this first to understand the canvas situation. Alias: ctx.

Input

None.

Output

One JSON object:

{
  project:        { id: string; name: string };
  entityCount:    number;
  scenes:         Array<{ id: number; name: string; size: Size }>;
  activeSceneId:  number | null;   // null if no scene is active
  currentFrame:   number;          // current timeline playhead position, in frames
  fontFamilies:   string[];
}