List comments on a page
list_commentsGet comments for a Wiki.js page by path and locale. Returns the comment list, or an empty array when comments are turned off for the wiki.
Instructions
Returns the comments on one page, addressed by path and locale — not by page id, which is the one place Wiki.js asks for the path instead. An empty list can also mean comments are switched off for the wiki; get_site_info reports that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Page path without a leading slash and without the locale prefix, e.g. "docs/setup". A browser URL looks like /en/docs/setup — drop the "en/", it is the locale argument. (Not enforced: "ci/", "db/" and "qa/" are perfectly good first segments that happen to look like locale codes.) | |
| locale | No | Locale code. Defaults to WIKIJS_LOCALE. The locale is part of a page’s identity. |