add_comment
Add a comment to selected text in an Overleaf document, using the file version to prevent conflicts and keep content unchanged.
Instructions
Create a native anchored comment on unique selected text. expected_version must come from read_file. Refuses stale versions. Does not change document text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| selected_text | Yes | ||
| expected_version | Yes |