deploy_prompt
Deploy a prompt version to a label (e.g., production or staging) to manage environment deployments, with automatic version tracking for one-step rollback.
Instructions
Deploy a specific prompt version to a label (an environment such as production / staging) (Pro+ only, POST /v1/prompts/:id/deploy). If a deployment already exists, the prior version is kept as previous and rollback_prompt can revert in one step. Re-deploying the same version does not create a previous entry. Labels are per prompt name (each name has its own production version).
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": {
"promptId": "<promptId>",
"label": "<label>"
},
"name": "deploy_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Environment label (alphanumerics plus _ -, 1-32 chars. E.g. 'production' / 'staging') | |
| promptId | Yes | Id of the version to deploy (list_prompts.prompts[].id) |