# UMLtimate > UMLtimate designs object models (classes, enums, inheritance, references) on a canvas and saves them as standard JSON Schema 2020-12 with a few documented `x-*` extensions. TypeScript classes are generated from that schema with `@company.quicko/jsonschema-to-typescript-objects-generator` 2.0.0-beta or later. The schema file is the source of truth. Agents edit the JSON; people edit the same file on the canvas, which reloads when the file changes. Link the canvas to a file with `/?file=` on the local dev server, or Tools → Open schema file (live sync)… in Chrome or Edge. `loadSchema` and Import make a copy that is not linked to any file. ## Specs - [Extensions spec](https://umltimate.quicko.org.in/schema/v1/umltimate.json): a JSON Schema that describes and validates every extension, with examples. - [JSON Schema 2020-12](https://json-schema.org/draft/2020-12) ## Conventions - Definitions live in `definitions`, keyed by PascalCase name. Library types (owned elsewhere) live in `$defs`. - Properties are snake_case. Reference other definitions with `{"$ref": "#/definitions/Name"}`; lists are `{"type": "array", "items": {...}}`. - Concrete classes carry a type discriminator: `"@entity": {"type": "string", "const": "org.quicko.tax_payer"}`, listed in `required`. - A class: `{"type": "object", "properties": {...}, "required": [...], "additionalProperties": false}`. - A subclass: `{"allOf": [{"$ref": "#/definitions/Parent"}, {"type": "object", "properties": {...}}], "unevaluatedProperties": false}`. Never put `additionalProperties: false` inside `allOf`; it rejects the parent's properties. - An abstract class adds `"x-abstract": true`. A parent with children adds an OpenAPI-style `discriminator` with `propertyName` and `mapping`. - An enum: `{"type": "string", "enum": ["resident", "non_resident_indian"], "x-enum": [{"key": "RESIDENT", "value": "resident", "description": "..."}, {"key": "NRI", "value": "non_resident_indian"}]}`. `enum` holds plain values; `x-enum` gives each value its code name (`key`) and description, matched by value. Without an entry the code name is the uppercased value. - `metadata` (root, or a `$defs` entry) holds `x-typescript-package` and `x-origin` for library types. - A property typed by an enum also carries `"enumType": ""` next to its `$ref` (or next to `items` for a list). The code generator reads it; keep it when you edit. ## Tools - Live sync with a file: open `/?file=` on the local dev server (`bun run dev`). Canvas edits save to the file; edits to the file show up on the canvas. In the page, `await window.umltimate.openFile(path)` does the same. - HTTP: `POST /api/validate` with a schema → `{ valid, issues: [{ severity, rule, path, message, fix? }] }` (`path` is a JSON Pointer). `GET /api/validate` lists the rules. - HTTP: `POST /api/diff` with `{ before, after }` → semantic changes (added/removed/changed class, property, enum value, rename). `summary: true` returns only `{ id, kind, summary }`; `accept: [ids]` adds the merged schema. - HTTP: `POST /api/edit` with `{ schema, op, args }` or `{ schema, ops: [{ op, args }] }` → `{ schema, errors }`. Ops: upsert_definition, remove_definition, rename_definition (updates every reference), set_property, rename_property, remove_property, add_enum_values. `GET /api/edit` describes the arguments. - HTTP: `POST /api/summary` with a schema → a compact TypeScript-like outline for prompts. - HTTP: `POST /api/open` with a schema → `{ url }`, a short `/?open=` link that opens it on the canvas (kept for an hour). Use it instead of putting a large schema in a URL. - MCP server (remote, Streamable HTTP): `https://umltimate.quicko.org.in/mcp` (or `/mcp`). Add with `claude mcp add --transport http umltimate /mcp`. Tools take the schema as an argument and return the result; nothing is read from disk: conventions, summary, get_definition, lint, edit, diff, apply_changes, open_in_canvas. - CLI (in the repo): `bun bin/umltimate.ts lint|diff|summary|rename|format `. - MCP server (stdio, in the repo, edits a file on disk): `bun bin/umltimate.ts mcp `. Tools: summary, get_definition, lint, diff, upsert_definition, remove_definition, rename_definition, set_property, rename_property, remove_property, add_enum_values. - Browser: `window.umltimate` (openFile, getSchema, loadSchema, lint, diff, applyChanges, summary, addClass, addAttribute, link, rename, layout). `window.umltimate.help()` lists them; Tools → For agents… shows all of this in the app. - Links: `/?schema=`, `/#schema=` (small schemas only), and `/#model=…` from Tools → Copy share link. All open as a new model, and nothing is uploaded. ## Workflow for agents 1. Read the outline (`summary`), then only the definitions you need. 2. Make changes with the edit tools or by editing the JSON. 3. Run `lint` and fix every error before handing back. 4. Give the person a diff (`diff`) so they can review the changes.