Import a SQL dump
db_import_sqlImport an existing .sql file from the panel host into a specified database, enabling direct SQL restores without uploading files through the server.
Instructions
Import a .sql file that already exists on the panel host into a database. The file must be on the panel machine, not uploaded by this server.
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": {
"name": "<name>",
"file": "<file>"
},
"name": "db_import_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the .sql file on the panel host. | |
| name | Yes | Target database name. |