Switch the preview to a variant
set_preview_variantUsed by the variant card: makes the user's open preview of this session show the selected design variant (the __ronda_variant value). Changes only which variant the preview displays; does not change any code. Pass waitSeconds to wait until the open preview has picked it up (applied:false means no preview page is open for this session). The result says whether a preview is open (visible, in the background, or none).
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": {
"sessionId": "<sessionId>",
"key": "<key>"
},
"name": "set_preview_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The __ronda_variant value to show, or null for the current version. | |
| label | No | Short name of the variant, shown in the preview while it switches. | |
| context | No | A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| sessionId | Yes | The ronda session id, from open_session or list_sessions. | |
| waitSeconds | No | Seconds to wait (0-8, default 0) until the open preview has picked the variant up. Only waits when a preview is visible. |