Discard a preview
discard_previewDiscard a preview immediately — its URL stops serving and its files are deleted. Previews also expire on their own after 24 hours, so this is only needed to free a cap slot early or retire a shared link.
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": {
"previewId": "<previewId>"
},
"name": "discard_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| previewId | Yes | Preview id from publish_preview or list_sites |