Add comment
typst_add_commentAttach a review comment to exact text or a line range in a Typst file so it stays anchored to that content as the file changes.
Instructions
Add a review comment to a text file, anchored either on exact text (anchor_text, plus occurrence if it is not unique) or on a line range. The comment stays attached to that text even when the file changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Project-relative path like 'chapters/intro.typ', or a file ID | |
| content | Yes | Comment text | |
| end_line | No | ||
| occurrence | No | Which occurrence of anchor_text (1-based) if it appears several times | |
| project_id | Yes | Project ID from typst_list_projects, e.g. 'pAbC123dEf456gHi789jKl' | |
| start_line | No | ||
| anchor_text | No | Exact text the comment refers to |