update_mode
Updates the name or default status of an existing mode.Tool Schema
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tokenset_id | string | Yes | The ID of the tokenset containing the mode |
mode_id | string | Yes | The ID of the mode to update |
name | string | No | The new name of the mode (1-255 characters) |
is_default | boolean | No | Whether this mode should be the default mode |
Response
Example Usage in Claude
Update Mode Name
Change Default Mode
Update Both Name and Default Status
Common Use Cases
1. Better Naming
2. Theme Switching
3. Reorganization
Default Mode Behavior
- Setting
is_default: truewill automatically change any other default mode to non-default - Each tokenset can have only one default mode
- The default mode is used when no specific mode is requested
- You cannot remove the default status from a mode if it’s the only mode in the tokenset
Notes
- At least one of
nameoris_defaultmust be provided - Mode names must be unique within their tokenset
- The
updated_attimestamp will be automatically updated - All existing tokens within the mode remain unchanged
See Also
- get_mode - Get mode details
- list_modes - View all modes in tokenset
- create_mode - Create new mode