update_prompt
Update an existing prompt, changing only provided fields and creating a new archived version; publish the new version to activate it.
Instructions
Update an existing prompt and create a new archived version. Only provided fields change, and publish_prompt is what makes the new version active. For multi-message chat prompts pass messages (preferred) or a JSON-encoded array as string.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt_id": "<prompt_id>"
},
"name": "update_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New display name for the prompt | |
| model | No | New model identifier | |
| tools | No | New tool definitions | |
| string | No | Legacy prompt template string. Use plain text for single-message prompts, or a JSON-encoded messages array string for multi-message chat prompts. | |
| dry_run | No | When true, validate without updating | |
| messages | No | Structured chat template alias for updates. Serialized to the legacy string format before the prompt is updated. | |
| functions | No | New function definitions | |
| prompt_id | Yes | Prompt ID or slug to update | |
| parameters | No | New default values for template variables | |
| tool_choice | No | New tool choice strategy | |
| virtual_key | No | New virtual key slug | |
| collection_id | No | Move to a different collection | |
| is_raw_template | No | Enable or disable raw structural-template rendering | |
| template_metadata | No | New metadata | |
| version_description | No | Description for this version |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |