Try a task's preview again
retry_previewTries a task's preview again when it stopped because of a problem on CodeGene's side (get_task or get_preview_links shows it stopped). It starts the same change again as it is, so nothing new is built or charged; CodeGene also tries again by itself for a day. Answers what happened in plain words: trying again (the preview usually shows up within a few minutes), nothing to try again, or not now and why. A preview that stopped because of something in the change itself needs a new request_change instead.
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": {
"task_id": "<task_id>",
"reason": "<reason>"
},
"name": "retry_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why, in a sentence: kept in the workspace's activity. | |
| task_id | Yes | The task whose preview to try again (list_tasks gives ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |