update_prompt
Modify existing prompts by updating their name, description, or messages, converting single content to multi-message format when needed. Ensures prompt content remains accurate and adaptable.
Instructions
Updates an existing prompt (supports both single content and multi-message formats)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | No | New description for the prompt | |
id | Yes | ID of the prompt to update | |
messages | No | New messages (converts single content to multi-message format) | |
name | No | New name for the prompt |
Input Schema (JSON Schema)
{
"properties": {
"description": {
"description": "New description for the prompt",
"type": "string"
},
"id": {
"description": "ID of the prompt to update",
"type": "string"
},
"messages": {
"description": "New messages (converts single content to multi-message format)",
"items": {
"properties": {
"content": {
"properties": {
"image": {
"description": "Image data (required for image type)",
"type": "string"
},
"text": {
"description": "Text content (required for text type)",
"type": "string"
},
"type": {
"description": "Type of content",
"enum": [
"text",
"image"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"role": {
"description": "Role of the message sender",
"enum": [
"user",
"assistant"
],
"type": "string"
}
},
"required": [
"role",
"content"
],
"type": "object"
},
"type": "array"
},
"name": {
"description": "New name for the prompt",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
}