Comments
Add a comment
Useadd_comment to anchor a comment to a specific paragraph or a specific run of text within a paragraph:
Add a threaded reply
To reply to an existing comment, provideparent_comment_id instead of target_paragraph_id:
get_comments.
Get all comments
Useget_comments to retrieve all comments and replies with their IDs, authors, dates, text, and anchored paragraph IDs:
Delete a comment
Usedelete_comment with the comment’s integer ID. Deleting a root comment cascade-deletes all its threaded replies:
Footnotes
Add a footnote
Useadd_footnote to insert a footnote reference into a paragraph. By default the reference appends at the end of the paragraph; use after_text to position it after a specific word or phrase:
Get all footnotes
Useget_footnotes to list all footnotes with their IDs, display numbers, body text, and the paragraph IDs they are anchored to:
Update a footnote
Useupdate_footnote with the footnote’s integer note_id to change its body text:
Delete a footnote
Usedelete_footnote with the footnote’s integer note_id to remove the footnote and its reference marker from the document:
Golden prompt: comment and footnote workflow
This prompt reliably adds a comment and footnote to a document and returns their IDs:Related guides
Editing documents
Make surgical text edits with formatting preservation.
Golden prompts
All known-good prompt patterns in one place.

