get_frame
Look at a document: a still image of the moment time seconds into a version, rendered as it will play, returned as the image itself and a signed URL (url, which downloads it). Use it to check an edit. It's a render, so it costs credits the first time; the same frame again is free. A first render can take longer than this call waits (45 seconds): it then answers frame.rendering while the render goes on, and calling again right away with the same arguments returns it, billed once; a running export can make that take longer. Each frame is also saved in the workspace's renders/ folder, as the asset that asset names.
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": {
"document_id": "<document_id>",
"time": "<time>"
},
"name": "get_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | The moment to show, in seconds from the start. It shows the frame the moment falls in, and a moment past the end shows the last frame. | |
| alias | No | An alias, such as `latest`; `latest` when neither this nor `version` is given. | |
| width | No | The image's width in pixels; the video's when neither width nor height is given. With only one of them, the other follows the video's aspect ratio; with both, the image is the largest that fits in them. | |
| format | No | `jpg` (the default), `png` or `webp`. | |
| height | No | The image's height in pixels. | |
| version | No | A version, by number. | |
| document_id | Yes | The document to look at, `doc_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The image, signed: it downloads without an API key until `expires_at`. | |
| time | Yes | When the frame it shows starts, in seconds. | |
| asset | Yes | The asset it's saved as, in the workspace's `renders/` folder. | |
| width | Yes | The image's width, in pixels. | |
| format | Yes | ||
| height | Yes | The image's height, in pixels. | |
| version | Yes | The version it shows. | |
| expires_at | Yes | RFC 3339. |