playcal_replay
Records input through the SDK, then replays it as a regression test with fixed frame rate and seed; step frames or compare recordings to catch differences.
Instructions
record input through the SDK, replay it as a regression test with fixed frame rate and seed, step frames
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": {
"action": "<action>"
},
"name": "playcal_replay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | record: fixed frame rate the game steps at (default 60) | |
| seed | No | record: UnityEngine.Random seed (default 0) | |
| wait | No | seconds to wait for the SDK to finish (default from the frame count) | |
| force | No | record: overwrite an existing recording | |
| names | No | replay name (files in <project>/.playcal/replays/), or two files for check | |
| action | Yes | record NAME: record a play session. run NAME: replay it and compare. step: advance a paused Editor. check NAME or check A B: compare offline | |
| frames | No | record: frames to record, 0 = until Play stops (default 600). step: frames to step (default 1) | |
| stop_at | No | run: pause the Editor on this replay frame and stay in Play Mode | |
| timeout | No | seconds to wait for a ready Editor (default 120) | |
| tolerance | No | decimal marks may differ by this much, absolute; whole numbers must match exactly (default 1e-4) | |
| project_path | No | Unity project folder (default: the open Editor's) |