Database actions
dbaction "migrate": apply pending migrations/*.sql files to the preview database, in order, each in its own transaction (an automatic snapshot is taken first). Production is migrated when you publish.
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": {
"project": "<project>",
"action": "<action>"
},
"name": "db"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| project | Yes | Project slug or id. | |
| idempotency_key | No | Any unique string; a repeated call with the same key has no second effect. |