rl_record_rollout
Render an RL episode, return a contact sheet of frames, and save a GIF on the runtime for visual rollout inspection.
Instructions
Render an episode and return a contact sheet of frames (and save a gif on the runtime).
rollout_code runs on the runtime and MUST leave a variable frames — a list
of HxWx3 uint8 arrays (e.g. from env.render() with render_mode='rgb_array').
A rollout.gif is written to the run dir; download it with download_file.
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": {
"run_name": "<run_name>",
"rollout_code": "<rollout_code>"
},
"name": "rl_record_rollout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_name | Yes | ||
| max_frames | No | ||
| rollout_code | Yes |