Comment on a passage of a page, an element of a board or a cell of a table
add_commentStart a comment thread on a Folio Wiki page by attaching text to an exact document quote, board element, or table cell; returns the new thread.
Instructions
Starts a comment thread. On a document page: attached to the FIRST occurrence of quote in the page's current text (the markdown as read_page returns it, including any formatting characters — copy it exactly); fails when the quote is not on the page. On a board: pass elementId (a shape/arrow/text id from read_page) instead of quote; fails when the board has no such element. On a table: pass BOTH rowId and columnId (row ids from folio_table_query, column ids from folio_table_schema) to comment on that cell; fails when the table has no such row or column. The comment is authored by the connected user and does not change the page. Requires a write-scoped token and a signed-in account that can read the page. Not available on a public site. Returns the new thread.
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": {
"page": "<page>",
"body": "<body>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The comment, plain text (@username mentions are kept as written) | |
| page | Yes | Page id | |
| quote | No | Documents: exact text from the page to attach the comment to; the first occurrence is used | |
| rowId | No | Tables: id of the row of the cell to comment on (with columnId) | |
| columnId | No | Tables: id of the column of the cell to comment on (with rowId) | |
| elementId | No | Boards: id of the element to attach the comment to (from read_page) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread | Yes | The new thread |