schema_save
Save/upload schemas to the domain. Schemas are validated before saving. Returns list of successfully saved schemas with their UUIDs.
IMPORTANT: Pass FLAT schema objects directly — do NOT wrap in schema_content. The tool handles schema_type detection and wrapping automatically.
Required fields: name, parent_type, prefix, plural_name, attributes, description.
Supported attribute types: 'string' for text, 'float' for decimal numbers (NOT 'number'), 'integer' for whole numbers, 'boolean' for true/false.
Optionally pass project_uuid to auto-link saved schemas to a project.
Example: { "schemas": [{ "name": "product", "description": "Product catalog entry", "parent_type": "tenant", "prefix": "prd", "plural_name": "products", "attributes": [ {"name": "title", "type": "string", "required": true}, {"name": "price", "type": "float"}, {"name": "stock", "type": "integer"} ] }] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schemas | Yes | Array of schema definitions to save. | |
| project_uuid | No | Optional project UUID to auto-link saved schemas to. | |
| skip_existing | No | Skip schemas that already exist (default: true). |