Skip to content

gatos.camera_track

tool Camera and media

Manage structured JSON camera tracks and their playback.

Use when
Uploading, inspecting, deleting, or playing a cinematic camera program.
Availability
camera_enabled; play/update/stop also use the schedule player.

Input

FieldTypeRequirementDescription
operationstringRequiredlist, read, upload, delete, play, update, or stop.
namestring | nullOptional · nullTrack name for all operations except list.
jsonstring | nullOptional · nullStructured camera-track JSON chunk for upload.
offsetintegerOptional · 0Byte offset for an upload chunk.
completebooleanOptional · trueFinalize and validate the uploaded track.
valuenumberOptional · 0Playback operation scalar.
tokenstring | nullOptional · nullFallback track/player token.

Operation call shapes

Choose an operation below. Its required payload and a complete call stay together—there is no second table to cross-reference.

list

List stored track names and metadata.

Arguments for this operation

{ operation: "list" }

Example

gatos.camera_track({"operation":"list"})

read

Return one track's complete JSON.

Arguments for this operation

{ operation: "read", name }

Example

gatos.camera_track({"operation":"read","name":"launch"})

upload

Write a UTF-8 JSON chunk; complete=true validates and commits the track.

Arguments for this operation

{ operation: "upload", name, json, offset?: byte_offset, complete?: boolean }

Example

gatos.camera_track({"operation":"upload","name":"launch","json":"{\"version\":1,\"shots\":[]}","offset":0,"complete":true})

delete

Remove one stored track.

Arguments for this operation

{ operation: "delete", name }

Example

gatos.camera_track({"operation":"delete","name":"launch"})

play | update | stop

Canonical action: camera.play / camera.set / camera.stop

Control the camera player.

Arguments for this operation

{ operation, name?, value?, token? }

Example

gatos.camera_track({"operation":"play","name":"launch"})

Call example

gatos.camera_track({"operation":"upload","name":"launch","offset":0,"complete":true,"json":"{\"version\":1,\"shots\":[]}"})

Result

Store metadata, track JSON, or playback command outcome.

Errors

  • ENOENT for missing tracks; EEXIST/ENOSPC/EFBIG for store constraints; EINVAL for invalid JSON or operation fields.

Operational notes

  • Track time is seconds; schedule_batch offsets are milliseconds.