create_comment
Post a comment to a Loomio discussion or reply within an existing thread by providing the comment body and a target discussion or parent item.
Instructions
Post a comment in a thread: 1 call (2 when discussion_id is a short key). Required body (+ body_format: 'html' for HTML; Loomio stores an omitted format as Markdown) and a target: discussion_id for a top-level comment, or parent_id + parent_type ('Comment' for a threaded reply; 'Poll' / 'Stance' / 'Outcome'). A new thread: create_discussion.
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": {
"body": "<body>"
},
"name": "create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| parent_id | No | Comment, Poll, Stance or Outcome id to reply to (needs parent_type). | |
| body_format | No | Default 'md'; 'html' when `body` is HTML. | |
| parent_type | No | Type of parent_id; required with it. | |
| discussion_id | No | Discussion id or short key (+1 call) for a top-level comment; or use parent_id. |