Comments
Add a comment
Useadd_comment to anchor a comment to a specific paragraph or a specific run of text within a paragraph:
| Parameter | Required | Description |
|---|---|---|
target_paragraph_id | For root comments | The _bk_* ID of the paragraph to anchor the comment to |
anchor_text | No | Specific text within the paragraph to anchor to. If omitted, anchors to the entire paragraph |
author | Yes | Display name for the comment author |
text | Yes | Comment body text |
initials | No | Author initials. Defaults to the first letter of author |
parent_comment_id | For replies | ID of the parent comment (see below) |
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:
| Parameter | Required | Description |
|---|---|---|
target_paragraph_id | Yes | The _bk_* ID of the paragraph to anchor the footnote to |
after_text | No | Text after which to insert the footnote reference. If omitted, appends at end of paragraph |
text | Yes | Footnote body text |
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.

