Create, rename, describe or reorder a prompt group
upsert_prompt_groupCreate a new prompt group or rename, describe, or reorder an existing one in the active project while preserving its prompt history.
Instructions
Creates a prompt group in the active project or, given a groupId, changes the name, description or order of an existing one. Only the fields sent are changed, and the prompts of a group keep their history when it is renamed or moved.
Without groupId a new, empty group is created: name is required, and the group goes after the existing ones unless order says otherwise. Prompts join a group through update_prompt (groupId) or through a matching groupName in add_prompts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the group. Required when creating one. | |
| order | No | Where the group sits in the project's ordering, lowest first. | |
| groupId | No | Id of the group to change, as list_prompt_groups reports it. Left out, a new group is created. | |
| description | No | What the group is for. Null clears it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| order | Yes | Where the group sits in the project's own ordering, lowest first. | |
| description | No | What the group is for. null = nobody described it. | |
| promptCount | Yes | Prompts in the group, paused ones included. |