publish_prompt
Sets a specific prompt version as the active default, immediately routing all slug callers to it. Verify the version first because this action has no rollback.
Instructions
Publish a specific version of a prompt as the active default, unlike promote_prompt which copies across environments or update_prompt which creates a new draft. This immediately routes all callers using the slug to that version and there is no rollback, so use list_prompt_versions to pick the version and update_prompt first if you need to create new content before promoting it.
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>",
"version": "<version>"
},
"name": "publish_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | Version number to publish as the default | |
| prompt_id | Yes | Prompt ID or slug to publish |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |