create_comment
create_commentAdd comments to traces, observations, sessions, or prompts in Langfuse for collaborative debugging and analysis of LLM applications.
Instructions
Creates a comment attached to a trace, observation, session, or prompt. objectType values: TRACE | OBSERVATION | SESSION | PROMPT. Both objectType and objectId are required along with content. Returns the created comment with its assigned ID.
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": {
"objectType": "<objectType>",
"objectId": "<objectId>",
"content": "<content>"
},
"name": "create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectType | Yes | Object type to attach the comment to: TRACE | OBSERVATION | SESSION | PROMPT. Required. | |
| objectId | Yes | ID of the trace, observation, session, or prompt to attach the comment to. Required. | |
| content | Yes | Comment text content. Required. |