Create Module
create_moduleCreate a new module with workflow states, activities, flows, or record list fields. Validates design rules internally, requiring Administrator, Consultant, or Workspace Admin role.
Instructions
Create a new module. Supports workflow modules (states, activities, flows) and record list modules (fields only). Requires Administrator, Consultant, or Workspace Admin role. Validates internally with the same rules as validate_design and returns structured errors without creating anything — a separate validate_design call beforehand is optional. See inistate://schema/configure for field types, color palette, and design rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Emoji identifier | |
| name | Yes | Module name | |
| flows | No | State transition rules: { from, to, activity } by name. Omit for record list modules. | |
| states | No | Workflow states. Omit for record list modules. | |
| activities | No | Custom activities. Omit for record list modules. | |
| description | No | ||
| information | No | Field definitions. Items matched by id on update enable renaming. | |
| workspaceId | No | Workspace ID. Omit if set via env or set_workspace; required in stateless/remote mode. |