Change a prompt
update_promptChange a prompt's name, model, settings, messages (the list given replaces all of them), variables or JSON schema. Fields left out stay as they are. Every change is saved as a prompt version, and the answer's previous holds the old values for undo. Deployed apps keep the old version until deploy_prompt.
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 | ||
| model | No | ||
| messages | No | ||
| max_token | No | ||
| prompt_id | Yes | ||
| variables | No | ||
| change_note | No | What changed, for the version history. | |
| json_schema | No | {} removes it. | |
| temperature | No | ||
| reasoning_effort | No |