promote_prompt
Copies a prompt from one environment to another and automatically creates or updates the target for staged releases, returning source and target version IDs.
Instructions
Copy a prompt from one environment to another and create or update the target automatically. Use this for staged releases when you want the target prompt synchronized without manual edits, and it returns both source and target version ids.
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": {
"source_prompt_id": "<source_prompt_id>",
"target_collection_id": "<target_collection_id>",
"target_env": "<target_env>"
},
"name": "promote_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_env | Yes | Environment identifier (REQUIRED). Use your environment name, for example 'dev', 'staging', 'prod', or 'qa'. | |
| target_name | No | Target prompt name (defaults to source name with env suffix replaced) | |
| virtual_key | No | Virtual key ID to use (defaults to source prompt's virtual_key) | |
| source_prompt_id | Yes | Source prompt ID or slug (e.g., staging prompt) | |
| target_collection_id | Yes | Target collection ID for the promoted prompt |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |