create_comment
Adds a comment to a Storyblok discussion by specifying the discussion ID and a required array of message objects containing type, text, and attrs, with an optional plain-text field.
Instructions
Adds a comment to a discussion via the Storyblok Management API.
discussion_id: Numeric ID of the discussion.
message_json: Required array of message objects. Each must include "type", "text", and "attrs".
message: Optional plain-text field (can be null or string).
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": {
"discussion_id": "<discussion_id>",
"message_json": "<message_json>"
},
"name": "create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| discussion_id | Yes | Numeric ID of the discussion | |
| message_json | Yes | Required array of message objects. Each must include "type", "text", and "attrs" | |
| message | No | Optional plain-text field (can be null or string) |