Enable a PostgreSQL extension
enable_extensionPostgreSQL only. Enables an extension from get_database_options (vector for pgvector, postgis, pg_trgm…) in one logical database; installed on demand, live within a minute. Scope: databases.write.
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": {
"database": "<database>",
"name": "<name>",
"extension": "<extension>"
},
"name": "enable_extension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The logical database, e.g. defaultdb. | |
| database | Yes | Database id, as returned by list_databases or create_database. | |
| extension | Yes | Extension name from get_database_options, e.g. vector, postgis, pg_trgm. |