load_script_file
Read and optionally execute SQL scripts from disk with sandbox rollback, enabling safe testing and schema changes without permanent modifications.
Instructions
Read a SQL file from disk and optionally execute it (sandbox by default).
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": {
"path": "<path>"
},
"name": "load_script_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to .sql file | |
| execute | No | ||
| sandbox | No | When true, wrap writes in a transaction and ROLLBACK (default from config) | |
| database | No | Database/schema name; defaults to connection default_database | |
| confirmed | No | Must be true for destructive operations when confirmation is required | |
| connection | No | Named connection from config; defaults to default_connection |