reinstall_service
Rebuild a service from scratch by reinstalling the OS image, wiping the current disk while preserving the IP address. Requires explicit confirmation and is irreversible.
Instructions
Reinstall (rebuild from scratch) a service — works on BOTH a cloud VM (Nova UUID service_id) and a legacy VPS (numeric service_id). Requires scope services:write. IRREVERSIBLE: wipes the current disk and reinstalls the OS image; the service keeps its IP (and, for a cloud VM, keeps a one-time consolePassword in the response only when no password was supplied). Requires imageId, a curated OS template/image slug (see list_os_templates / list_images / get_service os-templates). password and sshPublicKey are optional (sshPublicKey only applies to a cloud VM). You MUST pass confirm:true, and only after the user has explicitly approved the rebuild and understands the data loss. service_id from list_services. SECURITY: the response may include a one-time consolePassword root credential (cloud VM only, returned when no password was supplied). Treat it as a secret: do NOT echo it back to the user or store it, unless the user explicitly asks for it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Set to true to execute. This operation spends from your account balance and/or is irreversible; only pass true after the user has explicitly approved. Omit or false → the tool refuses and makes no API call. | |
| imageId | Yes | OS template/image slug (see list_os_templates or list_images). | |
| password | No | Optional root password for the rebuilt server (8–128 chars). Never echoed or logged. | |
| service_id | Yes | Service ID from list_services. | |
| sshPublicKey | No | Optional inline SSH public key to install for root (cloud VM only). |