Add comment
add_commentLeave a comment on exactly ONE of an item, a ticket or an order: exactly one of itemId / ticketId / orderId plus the text ("note on the beamer: lamp flickers"). The comment appears in that record's activity timeline under the connected user's name, marked "(via AI agent)", and notifies the people involved (item holder and responsible person, ticket reporter and assignee, order participants). Order comments require being an order participant (requester, assignee or an order manager). Plain text only: @-mentions are not supported. list_comments reads the thread back with the same one target id. Not idempotent: a repeated call posts a second comment.
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": {
"text": "<text>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The comment text (plain text) | |
| itemId | No | Item id (exactly one target) | |
| orderId | No | Order id (exactly one target) | |
| ticketId | No | Ticket id (exactly one target) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | "item", "ticket" or "order" | |
| viaAgent | No | True — the comment is marked as written via AI agent | |
| commentId | No | The new comment's id | |
| authorName | No | Whose name the comment carries |