Run the Rive CLI (headless)
rive_cliRun the Rive CLI to create, verify, and build interactive Rive animations from text .rml project files without the editor, including headless screenshots and input simulation.
Instructions
Run the Rive command-line tool to make interactive Rive animations from text project files (Rive Markup Language, .rml), without the Rive editor. Common: ["create", ""] scaffolds a project (it includes AGENTS.md/CLAUDE.md: read them first); ["", "--verify"] checks it compiles; ["", "--once"] builds build/.riv; ["--help"] or ["", "--help"] for everything else (rendering frames, tests). Headless captures: [".", "--screenshot", "--advance=1"] renders build/.png; add --pointer/--touch/--key/--data to simulate input, --data-dump/--semantics for state. Anything that opens a window (the previewer, --serve/--device without --headless-serve, rive open) is refused. push/pull/login touch the user's Rive account: only when asked.
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": {
"args": "<args>",
"cwd": "<cwd>"
},
"name": "rive_cli"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Folder to run in, usually the job's rive/ folder | |
| args | Yes | Arguments after `rive`, e.g. ["mascot", "--verify"] | |
| timeoutMinutes | No |