Bring back archived database
databaseRestoreRestore one owned app’s archived database (Bring it back on its Database page) into a NEW managed database, check it and reconnect the app, never writing over a database or deleting anything. Requires confirmName, the app’s exact name, representing the human’s agreement to restore this exact app; a wrong name is refused. It needs the account’s plan to include a managed database: if not, payment_required sends the human to the Tofu dashboard, where the account’s plan is managed. The answer is a report, not an error: its message is human-readable. in_progress is not a failure: Tofu carries it on by itself. unverified and files_failed copies are never connected to the app. requiresDeployment true: deploy the app again so its build sees the new connection settings. Sign-in accounts come back; everyone signs in again. reentry names sign-in secrets to supply again: this tool neither takes nor returns the values. It returns no credential.
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": {
"projectId": "<projectId>",
"confirmName": "<confirmName>"
},
"name": "databaseRestore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ||
| confirmName | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | ||
| ref | Yes | ||
| code | Yes | ||
| state | Yes | ||
| sha256 | Yes | ||
| actorId | Yes | ||
| archive | Yes | ||
| enabled | Yes | ||
| message | Yes | ||
| outcome | Yes | ||
| reentry | No | ||
| rewrite | No | ||
| projectId | Yes | ||
| artifactKey | Yes | ||
| verification | Yes | ||
| requiresDeployment | Yes |