update_prompt_labels
update_prompt_labelsReplace labels on a specific prompt version in Langfuse to organize and categorize prompt management.
Instructions
Replaces the labels on a specific prompt version. newLabels completely replaces the existing label set on that version. The 'latest' label is reserved and managed by Langfuse — do not include it. Both promptName and version are required. newLabels is required — supply an empty string to remove all labels from this version.
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": {
"promptName": "<promptName>",
"version": "<version>",
"newLabels": "<newLabels>"
},
"name": "update_prompt_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| promptName | Yes | Prompt name (exact match). Required. | |
| version | Yes | Version number to update. Required. | |
| newLabels | Yes | Comma-separated new labels, e.g. production,staging. Supply empty string to remove all labels. |