{"ok":true,"site":{"host":"ddl.xingkaixin.me","url":"https://ddl.xingkaixin.me/","type":"live","desc":"","tools":[{"name":"get_auth_status","kind":"answer","impl":"imperative","description":"Report whether the current browser session is signed in and which capability groups are available.","title":"Get authentication status","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"inspect_active_schema","kind":"answer","impl":"imperative","description":"Read one section of the active DDLBuilder document. Use the returned baseSignature before proposing changes.","title":"Inspect active schema","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"section":{"type":"string","enum":["overview","fields","indexes","relations","options"]},"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"maximum":50}},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"lint_active_schema","kind":"act","impl":"imperative","description":"Run deterministic schema naming, key, type, and dangling-reference checks on the active document.","title":"Check active schema","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"read_generated_output","kind":"answer","impl":"imperative","description":"Read a bounded chunk of generated DDL, DCL, ORM, ALTER, or rollback output for the active document.","title":"Read generated output","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"kind":{"type":"string","enum":["ddl","dcl","orm","alter","rollback"]},"offset":{"type":"integer","minimum":0},"maxChars":{"type":"integer","minimum":1,"maximum":1200}},"required":["kind"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"preview_schema_patch","kind":"act","impl":"imperative","description":"Validate and stage transactional table, field, and index changes without modifying the active document.","title":"Preview schema changes","inputSchema":{"type":"object","properties":{"baseSignature":{"type":"string"},"operations":{"type":"array","minItems":1,"items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"kind":{"const":"table.update"},"schemaName":{"type":"string"},"tableName":{"type":"string"},"tableComment":{"type":"string"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"const":"field.add"},"afterFieldId":{"type":"string"},"field":{"type":"object","properties":{"fieldName":{"type":"string"},"fieldType":{"type":"string"},"fieldComment":{"type":"string"},"nullable":{"type":"boolean"},"defaultKind":{"type":"string","enum":["none","auto_increment","constant","expression","current_timestamp","uuid"]},"defaultValue":{"type":"string"},"onUpdate":{"type":"string","enum":["none","current_timestamp"]}},"required":["fieldName","fieldType"],"additionalProperties":false}},"required":["kind","field"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"const":"field.update"},"fieldId":{"type":"string"},"changes":{"type":"object","properties":{"fieldName":{"type":"string"},"fieldType":{"type":"string"},"fieldComment":{"type":"string"},"nullable":{"type":"boolean"},"defaultKind":{"type":"string","enum":["none","auto_increment","constant","expression","current_timestamp","uuid"]},"defaultValue":{"type":"string"},"onUpdate":{"type":"string","enum":["none","current_timestamp"]}},"required":[],"additionalProperties":false}},"required":["kind","fieldId","changes"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"const":"field.remove"},"fieldId":{"type":"string"}},"required":["kind","fieldId"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"const":"field.reorder"},"fieldId":{"type":"string"},"afterFieldId":{"type":"string"}},"required":["kind","fieldId"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"const":"index.add"},"index":{"type":"object","properties":{"name":{"type":"string"},"fields":{"type":"array","minItems":1,"items":{"type":"object","properties":{"name":{"type":"string"},"direction":{"type":"string","enum":["ASC","DESC"]}},"required":["name"],"additionalProperties":false}},"kind":{"type":"string","enum":["index","unique_index","unique_constraint","primary"]}},"required":["name","fields"],"additionalProperties":false}},"required":["kind","index"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"const":"index.update"},"indexId":{"type":"string"},"changes":{"type":"object","properties":{"name":{"type":"string"},"fields":{"type":"array","minItems":1,"items":{"type":"object","properties":{"name":{"type":"string"},"direction":{"type":"string","enum":["ASC","DESC"]}},"required":["name"],"additionalProperties":false}},"kind":{"type":"string","enum":["index","unique_index","unique_constraint","primary"]}},"required":[],"additionalProperties":false}},"required":["kind","indexId","changes"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"kind":{"const":"index.remove"},"indexId":{"type":"string"}},"required":["kind","indexId"],"additionalProperties":false}]}}},"required":["baseSignature","operations"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"import_sql_preview","kind":"act","impl":"imperative","description":"Parse SQL as a selected database dialect and stage the resulting schema for user review. It never applies automatically.","title":"Preview SQL import","annotations":{"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"baseSignature":{"type":"string"},"sql":{"type":"string","minLength":1,"maxLength":50000},"dbType":{"type":"string","enum":["mysql","sqlite","postgresql","postgresql-citus","sqlserver","oracle","mariadb","tidb","dm","oceanbase","oceanbase-oracle","kingbase","gbase","polardb","gaussdb","hive"]}},"required":["baseSignature","sql","dbType"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"apply_schema_patch","kind":"act","impl":"imperative","description":"Request visible user confirmation, then apply a previously staged change set if the active document is unchanged.","title":"Apply reviewed schema changes","inputSchema":{"type":"object","properties":{"changeSetId":{"type":"string"},"operationIds":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"required":["changeSetId"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]},{"name":"start_sign_in","kind":"act","impl":"imperative","description":"Open the DDLBuilder sign-in dialog. The user completes password and human-verification steps privately in the page.","title":"Start sign in","inputSchema":{"type":"object","properties":{"reason":{"type":"string","enum":["sync_workspace","use_ai","open_saved_tables","other"]}},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/"]}],"category":"Developer Tools","favicon":"/favicons/ddl.xingkaixin.me.png","apiSurface":"spec","toolCount":8}}