introspect_db
Import a live PostgreSQL/MySQL schema into an existing ERD, replacing its current contents while preserving the project. Read-only, metadata-only operation.
Instructions
Imports the schema of a live PostgreSQL/MySQL database into an existing ERD (full replace, project id preserved). Read-only — queries only the information schema/catalog; never reads table data. The database URL is used by this local process only and is never sent to Sqemo servers. Pro plan required; requires login.
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": {
"source": "<source>",
"url": "<url>"
},
"name": "introspect_db"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | postgres:// or mysql:// connection URL (credentials stay local) | |
| source | Yes | Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId}) | |
| dbSchema | No | Schema to read (postgres default: public; mysql default: database in the URL) |