promote_prompt
Copies a prompt between environments and automatically creates or updates the target, keeping staged releases synchronized without manual edits.
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.
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 | 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 |