next.builder.run
Home
First seen 2026-11-05 · Last seen 2026-11-05 · Source: webmcp.com
Answer 9 · Act 16 · Transact 3 · Score: Not yet scored
Tool inspector
upsert_type
Create or update a type and its fields. Use a singular key and label for one record; optional collection_label overrides the automatically pluralized list name. Providing fields replaces the type's field list; omitting fields leaves existing fields unchanged. Field type is canonical; compatible format, presentation, validation, and conditional behavior are optional. lifecycle turns one enum field into a validated state machine. Add or change one field with upsert_field. expose: true stores the type on the account space so every app shares its records. Example: upsert_type({ key: "task", fields: [{ key: "status", type: "enum", values: ["draft", "done"] }], lifecycle: { field: "status", initial: "draft", terminal: ["done"], transitions: [{ key: "complete", from: ["draft"], to: "done" }] } }).
Input schema
| Property | Type | Required | Description |
|---|---|---|---|
key |
string | yes | — |
label |
string | no | — |
meta |
object | no | — |
collection_label |
string | no | Optional plural label for lists and navigation. Omit it to infer an English plural from label; pass an empty string to clear an existing override. |
store |
string | no | — |
expose |
boolean | no | If true, the type lives on the account space and all apps share its records. If false or omitted, the type belongs only to this app. |
lifecycle |
— | no | State machine definition, or null to remove the existing lifecycle |
fields |
— | no | Fields to create with the type. Array of field objects, or a map of field key → field (or shorthand type string). |
Raw JSON schema
{
"type": "object",
"properties": {
"key": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
},
"label": {
"type": "string"
},
"meta": {
"type": "object",
"additionalProperties": true
},
"collection_label": {
"type": "string",
"description": "Optional plural label for lists and navigation. Omit it to infer an English plural from label; pass an empty string to clear an existing override."
},
"store": {
"type": "string"
},
"expose": {
"type": "boolean",
"description": "If true, the type lives on the account space and all apps share its records. If false or omitted, the type belongs only to this app."
},
"lifecycle": {
"anyOf": [
{
"type": "object",
"description": "Optional state machine attached to one enum field",
"properties": {
"field": {
"type": "string",
"description": "Enum field containing the current state"
},
"initial": {
"type": "string",
"description": "State assigned to every new record"
},
"terminal": {
"type": "array",
"items": {
"type": "string"
}
},
"transitions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"minLength": 1
},
"label": {
"type": "string"
},
"description": {
"type": "string"
},
"placeholder": {
"type": "string"
},
"from": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"to": {
"type": "string"
}
},
"required": [
"key",
"from",
"to"
],
"additionalProperties": false
}
}
},
"required": [
"field",
"initial",
"transitions"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "State machine definition, or null to remove the existing lifecycle"
},
"fields": {
"description": "Fields to create with the type. Array of field objects, or a map of field key → field (or shorthand type string).",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
},
"label": {
"type": "string"
},
"meta": {
"type": "object",
"additionalProperties": true
},
"description": {
"type": "string"
},
"placeholder": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"text",
"number",
"date",
"datetime",
"boolean",
"enum",
"reference"
]
},
"required": {
"type": "boolean"
},
"values": {
"type": "array",
"items": {
"type": "string"
}
},
"target": {
"type": "string",
"description": "Referenced type key (reference fields)"
},
"format": {
"type": "string",
"enum": [
"email",
"url",
"phone",
"currency",
"percentage"
]
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"presentation": {
"type": "string",
"enum": [
"textarea",
"rating",
"badge"
]
},
"variant": {
"type": "string",
"enum": [
"segments"
]
},
"max": {
"type": "number",
"minimum": 2,
"maximum": 10
},
"value_semantics": {
"type": "object",
"additionalProperties": {
"type": "string",
"enum": [
"neutral",
"info",
"success",
"warning",
"danger"
]
}
},
"default": {},
"validation": {
"type": "object",
"additionalProperties": true
},
"visible_when": {
"type": "object",
"additionalProperties": true
},
"enabled_when": {
"type": "object",
"additionalProperties": true
},
"required_when": {
"type": "object",
"additionalProperties": true
},
"hidden_value": {
"type": "string",
"enum": [
"preserve",
"clear"
]
}
}
}
},
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string",
"description": "Shorthand field type, e.g. text"
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
},
"label": {
"type": "string"
},
"meta": {
"type": "object",
"additionalProperties": true
},
"description": {
"type": "string"
},
"placeholder": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"text",
"number",
"date",
"datetime",
"boolean",
"enum",
"reference"
]
},
"required": {
"type": "boolean"
},
"values": {
"type": "array",
"items": {
"type": "string"
}
},
"target": {
"type": "string",
"description": "Referenced type key (reference fields)"
},
"format": {
"type": "string",
"enum": [
"email",
"url",
"phone",
"currency",
"percentage"
]
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$"
},
"presentation": {
"type": "string",
"enum": [
"textarea",
"rating",
"badge"
]
},
"variant": {
"type": "string",
"enum": [
"segments"
]
},
"max": {
"type": "number",
"minimum": 2,
"maximum": 10
},
"value_semantics": {
"type": "object",
"additionalProperties": {
"type": "string",
"enum": [
"neutral",
"info",
"success",
"warning",
"danger"
]
}
},
"default": {},
"validation": {
"type": "object",
"additionalProperties": true
},
"visible_when": {
"type": "object",
"additionalProperties": true
},
"enabled_when": {
"type": "object",
"additionalProperties": true
},
"required_when": {
"type": "object",
"additionalProperties": true
},
"hidden_value": {
"type": "string",
"enum": [
"preserve",
"clear"
]
}
}
}
]
}
}
]
}
},
"required": [
"key"
],
"additionalProperties": false
}
Similar websites
morphus.myles4miles.chatgpt.site
Morphus is an AI-native workspace for designing worlds and generating playable game experiences.
damnpdfs.com
Install the DamnPDFs Codex plugin, pair a browser workspace and use PDF, image and file tools from your coding agent. Includes setup and privacy limits.
insignifi4nt.github.io
broCAD/M: local-first CAD and CAM for parametric design, wire EDM planning, simulation and controller export.
cabinet.varera.studio
The Cartographer's Cabinet