create_text_prompt
Create a new text prompt version in Langfuse to update immutable prompts. Supports variables, labels, tags, config, and commit messages for versioned prompt management.
Instructions
Create a new text prompt version in Langfuse.
Prompts are immutable; creating a new version is the only way to update prompt content. Labels are unique across versions - assigning a label here will move it from other versions.
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": {
"name": "<name>",
"prompt": "<prompt>"
},
"name": "create_text_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the prompt to create | |
| tags | No | Optional tags for organization (e.g., ['experimental', 'v2']) | |
| config | No | Optional JSON config (e.g., {model: 'gpt-4', temperature: 0.7}) | |
| labels | No | Labels to assign (e.g., ['production', 'staging']) | |
| prompt | Yes | Prompt text content (supports {{variables}}) | |
| commit_message | No | Optional commit message describing the changes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||