pg_switch_database
Switch the active database connection profile to change which database subsequent queries target. Select a profile from your saved configurations.
Instructions
Switch the active connection profile. All subsequent queries will use this profile unless overridden.
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": {
"target": "<target>",
"profile": "<profile>"
},
"name": "pg_switch_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Target name from ~/.dbx/targets/ | |
| profile | Yes | Named profile to switch to |