create_erd
Create a new ERD from SQL or DBML text, or start empty. Save it locally or to your server, and optionally apply a workspace's naming standard.
Instructions
Creates a new ERD — empty or from SQL/DBML text. With a {file} target it saves locally; with {server:true} it saves to the server (login required). Pass workspaceId to bind it to that workspace's naming standard from the start.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | CREATE TABLE SQL (mutually exclusive with dbml) | |
| dbml | No | DBML text (mutually exclusive with sql) | |
| name | No | ||
| target | Yes | ||
| dialect | No | SQL dialect | |
| workspaceId | No | Workspace id (from list_workspaces) whose standard the new ERD links to — its word list, naming rules and domains are pulled in immediately, so physical names follow the team standard. Requires login. Omit for a standalone ERD with an empty word list. |