Command · Graphic
graphic.get
A graphic clip's graphic as JSON (docs/graphics.md), with its layers listed flat (bottom to top, groups before their children) and, for a template instance, its template and field values.
- v1
- Capability Read
- Tool
graphic_get
Request
{
"command": "graphic.get",
"params": {
"clip": 42
}
}Parameters
clipinteger | object (1..)Required- The graphic clip. A clip id, or {"track", "time"} for the clip there.
sequenceinteger (1..)- Sequence id; only needed when the project has several.
Discussion
A graphic clip's graphic as JSON (docs/graphics.md), with its layers listed flat (bottom to top, groups before their children) and, for a template instance, its template and field values.
Run it with wabcut-cli cmd <project> --json, from an MCP client as graphic_get, or from an extension. See Edit commands for requests, references and results.
See also
graphic.*
- graphic.add
New Graphic. Adds a motion graphic as a clip on a video track (overwriting what is there): "graphic" is the graphic's JSON (docs/graphics.md: name, width/height of its design canvas - default the sequence's frame - layers of text, shapes, images and groups, responsive time).
- graphic.addLayer
Add Graphic Layer. Adds a layer (JSON, docs/graphics.md) to a graphic clip: on top of "parent" (a group layer; default the top level), or at "index" (0 = bottom).
- graphic.applyPreset
Apply Animation Preset. Animates a layer with editable keyframes: fade, slide, scalePop, bounce (the transform), typewriter and wordByWord (a text-range animator: characters or words appear in turn), wipe (a mask).
- graphic.removeLayer
Delete Graphic Layer. Removes a layer from a graphic clip (a group with its children); pins to it and template fields bound to it go too.
- graphic.resolve
Graphic Draw List. The draw list of a graphic clip at a timeline time (default its start): every visible layer bottom to top with its transform to canvas pixels [a, b, c, d, e, f], opacity, blend mode, shadow, masks, and its path and paints, text runs (and per-character animator values) or image - with the brand kit applied.
- graphic.update
Edit Graphic. Changes a graphic clip's graphic with a JSON merge patch (RFC 7386) over its JSON (graphic.get): objects merge, null resets a key to its default, arrays ("layers") are replaced whole.
- graphic.updateLayer
Edit Graphic Layer. Changes a layer of a graphic clip with a JSON merge patch (RFC 7386) over the layer's JSON: {"text": {"runs": [{"text": "New"}]}} replaces the runs, {"transform": {"x": 200}} moves it, a curve ({"keys": [{"t": ticks, "v": value}, ...]} or just the array of keys) animates it.