# count_open_comments

Source: https://modulify.ai/docs/mcp/comments/count-open-comments

Counts the open comment threads on a site, the number the product shows on the comments badge.

- Title: Count the open comments
- Scope: `comments:read`
- Access: Read only

Only open root threads count. Resolved and deleted threads are not counted, and neither are replies, so the number can be smaller than the number of threads `list_comments` returns. Threads opened by people outside the workspace through the shared link are counted too.

Use it to find out whether anything is left to address without reading every thread. Resolving a thread with `resolve_comment` takes it off the count, and `reopen_comment` puts it back. See [Comments](https://modulify.ai/docs/editor/comments).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |