reserve_type
Reserve a type ID by providing a name and ADT definition. Null fields force full file reads on future sessions.
Instructions
Reserve a type ID before writing the definition. Include definition_json and description — null fields force full file reads in future sessions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Type name (will have _idxxx appended) | |
| definition_json | Yes | ADT definition (e.g., {'type': 'enum', 'variants': ['A', 'B']}) | |
| description | No | Type description | |
| links | No | Links to related functions | |
| file_id | No | File ID where type is defined | |
| skip_id_naming | No | If true, skip ID embedding in name. Sets id_in_name=0 in database. |