migrate_prompt
Create or update prompts for CI/CD and prompt-as-code workflows by finding existing prompts by name and applying changes.
Instructions
Create or update a prompt based on whether it exists. Useful for CI/CD and prompt-as-code workflows. Finds existing prompts by name within the collection.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Prompt name to create or find for update | |
| app | Yes | App identifier | |
| env | Yes | Environment | |
| collection_id | Yes | Collection ID to search in and create under | |
| string | Yes | Prompt template string with {{variable}} mustache syntax | |
| parameters | Yes | Default values for template variables | |
| virtual_key | Yes | Virtual key slug for model access | |
| model | No | Model identifier | |
| version_description | No | Description for this version | |
| template_metadata | No | Additional custom metadata | |
| functions | No | Function definitions | |
| tools | No | Tool definitions | |
| tool_choice | No | Tool choice strategy | |
| dry_run | No | When true, only check what action would be taken without making changes |