Skip to main content
Glama

Capture Animation

capture_animation

Capture a saved model animationView timeline or turntable as a downloadable MP4. Use file: "project:"; inline code, GIF and PNG-sequence output are not supported on this hosted server. Limits: 60 seconds, 60 fps, 1800 frames, 200 MiB. Turntable width/height are even and at most 2048; timeline frames are 1920×1080. Returns downloads[].url with a 24-hour expiry; local_only links can expire earlier on restart. A completed capture with collisions remains ok:true, verified:false. This is rendered CAD, without synchronized electronics playback, audio, or video editing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file": "<file>"
    },
    "name": "capture_animation"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoOverride the animationView record's fps.
fileYesSaved project source: project:<slug> or a Studio /p/<slug> URL. The server materializes source and attached assets; inline code is not supported.
hideNoHide matching feature ids / assembly part names in the rendered frames. Mutually exclusive with focus. Render-only; does not affect pose verification.
focusNoShow only matching feature ids / assembly part names in the rendered frames. Mutually exclusive with hide. Render-only; does not affect pose verification.
widthNoTurntable frame width in px (default 1080; even for MP4).
heightNoTurntable frame height in px (default 1080; even for MP4).
presetNoTurntable look: 'publish' (default; studio product shot) or 'default' (engineering look).
shadowNoTurntable + publish: soft contact shadow under the model (default true).
no_verifyNoSkip the animation-pose interference verification (default: verify on).
turntableNoSeamless 360° orbit of the model instead of the animationView timeline.
backgroundNoTurntable + publish: 'white' (default), 'light', 'dark', 'black', '#rrggbb', or 'transparent' (frames_dir only — MP4/GIF have no usable alpha).
duration_msNoTurntable: one full revolution in ms (default 6000).
environmentNoTurntable: HDRI environment override ('studio', 'softbox', 'neutral', 'outdoor', 'warehouse', a URL, or 'none').
output_pathNoDownload filename ending in .mp4. The server chooses the directory; the result returns downloads[].url.
verify_everyNoAdditionally verify at every n-th frame time of the fps schedule (unioned with the keyframe sample set).
elevation_degNoTurntable: camera elevation above the horizon in degrees (default 22).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / file / description
      Previous value: -"Path to a .kcad.ts script with an animationView({...}) record (any script in turntable mode). Required (no inline { code } mode). Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."New value: +"Saved project source: project:<slug> or a Studio /p/<slug> URL. The server materializes source and attached assets; inline code is not supported."
    • addedInput schema / properties / fps / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / fps / maximum
      Added value: +60
    • removedInput schema / properties / frames_dir
      Removed value: -{
      -  "description": "PNG-sequence mode directory: write frame-0000.png... and skip ffmpeg. Mutually exclusive with output_path.",
      -  "type": "string"
      -}
    • changedInput schema / properties / output_path / description
      Previous value: -"MP4 output path (.gif → looping GIF); default <scriptDir>/<basename>-animation.mp4 (-turntable.mp4 in turntable mode). Mutually exclusive with frames_dir."New value: +"Download filename ending in .mp4. The server chooses the directory; the result returns downloads[].url."
  2. Changed2 schema fields changed
    • removedOutput schema / properties
      Removed value: -{
      -  "collisions": {
      -    "description": "Colliding poses { t_ms, a, b, volume_mm3 }.",
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "diagnostics": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "duration_ms": {
      -    "type": "number"
      -  },
      -  "error": {
      -    "type": "string"
      -  },
      -  "errorCode": {
      -    "type": "string"
      -  },
      -  "errorHint": {
      -    "type": "string"
      -  },
      -  "failure_kind": {
      -    "type": "string"
      -  },
      -  "fps": {
      -    "type": "number"
      -  },
      -  "frame_count": {
      -    "type": "number"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  },
      -  "output_path": {
      -    "description": "Written MP4 path (MP4 mode).",
      -    "type": "string"
      -  },
      -  "verified": {
      -    "description": "Whether pose-interference verification passed.",
      -    "type": "boolean"
      -  },
      -  "verify_skipped": {
      -    "type": "boolean"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok",
      -  "diagnostics"
      -]
  3. Changed11 schema fields changed
    • addedInput schema / properties / background
      Added value: +{
      +  "description": "Turntable + publish: 'white' (default), 'light', 'dark', 'black', '#rrggbb', or 'transparent' (frames_dir only — MP4/GIF have no usable alpha).",
      +  "type": "string"
      +}
    • addedInput schema / properties / duration_ms
      Added value: +{
      +  "description": "Turntable: one full revolution in ms (default 6000).",
      +  "maximum": 60000,
      +  "minimum": 500,
      +  "type": "number"
      +}
    • addedInput schema / properties / elevation_deg
      Added value: +{
      +  "description": "Turntable: camera elevation above the horizon in degrees (default 22).",
      +  "maximum": 89,
      +  "minimum": -89,
      +  "type": "number"
      +}
    • addedInput schema / properties / environment
      Added value: +{
      +  "description": "Turntable: HDRI environment override ('studio', 'softbox', 'neutral', 'outdoor', 'warehouse', a URL, or 'none').",
      +  "type": "string"
      +}
    • changedInput schema / properties / file / description
      Previous value: -"Path to a .kcad.ts script with an animationView({...}) record. Required (no inline { code } mode). Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."New value: +"Path to a .kcad.ts script with an animationView({...}) record (any script in turntable mode). Required (no inline { code } mode). Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."
    • addedInput schema / properties / height
      Added value: +{
      +  "description": "Turntable frame height in px (default 1080; even for MP4).",
      +  "maximum": 2048,
      +  "minimum": 64,
      +  "type": "integer"
      +}
    • changedInput schema / properties / output_path / description
      Previous value: -"MP4 output path; default <scriptDir>/<basename>-animation.mp4. Mutually exclusive with frames_dir."New value: +"MP4 output path (.gif → looping GIF); default <scriptDir>/<basename>-animation.mp4 (-turntable.mp4 in turntable mode). Mutually exclusive with frames_dir."
    • addedInput schema / properties / preset
      Added value: +{
      +  "description": "Turntable look: 'publish' (default; studio product shot) or 'default' (engineering look).",
      +  "enum": [
      +    "default",
      +    "publish"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / shadow
      Added value: +{
      +  "description": "Turntable + publish: soft contact shadow under the model (default true).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / turntable
      Added value: +{
      +  "default": false,
      +  "description": "Seamless 360° orbit of the model instead of the animationView timeline.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / width
      Added value: +{
      +  "description": "Turntable frame width in px (default 1080; even for MP4).",
      +  "maximum": 2048,
      +  "minimum": 64,
      +  "type": "integer"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / file / description
      Previous value: -"Path to a .kcad.ts script with an animationView({...}) record. Required (no inline { code } mode)."New value: +"Path to a .kcad.ts script with an animationView({...}) record. Required (no inline { code } mode). Hosted server: cannot read files from your machine — pass `code`, or `project:<slug>` for a saved project."
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "collisions": {
      +      "description": "Colliding poses { t_ms, a, b, volume_mm3 }.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "diagnostics": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "duration_ms": {
      +      "type": "number"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "errorCode": {
      +      "type": "string"
      +    },
      +    "errorHint": {
      +      "type": "string"
      +    },
      +    "failure_kind": {
      +      "type": "string"
      +    },
      +    "fps": {
      +      "type": "number"
      +    },
      +    "frame_count": {
      +      "type": "number"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "output_path": {
      +      "description": "Written MP4 path (MP4 mode).",
      +      "type": "string"
      +    },
      +    "verified": {
      +      "description": "Whether pose-interference verification passed.",
      +      "type": "boolean"
      +    },
      +    "verify_skipped": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "diagnostics"
      +  ],
      +  "type": "object"
      +}
  6. Added

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false; the description goes well beyond them with hard limits (60 s, 60 fps, 1800 frames, 200 MiB), resolution rules per mode, a 24-hour download-URL expiry that can shorten to restart for local_only links, and the ok:true/verified:false outcome when collisions are found. It also discloses that electronics playback, audio, and video editing are absent, which prevents wrong expectations of the artifact.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then a scoping rule, then limits, then return/verification semantics, with no filler sentences. It is dense and reads as one packed paragraph, which is acceptable but slightly harder to scan than a short bulleted constraint list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter render tool with an output schema and annotations, the description covers limits, mode-specific behavior, output URL expiry, and verification results, so nothing critical is missing. The one real gap is operational: it does not say whether the capture blocks or is polled/queued for a job that can take up to 60 s of rendered frames (1800 max).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds meaning by clarifying that width/height/background/duration/environment are turntable-only while timeline frames are fixed at 1920×1080, and that turntable dimensions must be even. That resolves which parameters actually matter in each mode, though per-parameter detail remains mostly in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Capture a saved model animationView timeline or turntable as a downloadable MP4,' which tells the agent exactly what is produced and the two modes available. It stops short of differentiating against any sibling (e.g. a general export tool), so it is clear but not sibling-discriminating.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit prerequisites ('Use file: "project:<slug>"') and clear exclusions ('inline code, GIF and PNG-sequence output are not supported on this hosted server'), which is real when/when-not guidance. It does not point at an alternative tool for the unsupported formats, and it never says when to pick turntable vs. timeline other than that turntable replaces the animationView.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.