promote_prompt
Copy a prompt from one environment to another, automatically creating or updating the target. Returns both source and target version IDs for tracking.
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 |
|---|---|---|---|
| source_prompt_id | Yes | Source prompt ID or slug (e.g., staging prompt) | |
| target_collection_id | Yes | Target collection ID for the promoted prompt | |
| target_name | No | Target prompt name (defaults to source name with env suffix replaced) | |
| target_env | Yes | Environment identifier (REQUIRED). Use your environment name, for example 'dev', 'staging', 'prod', or 'qa'. | |
| virtual_key | No | Virtual key ID to use (defaults to source prompt's virtual_key) |
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 |