postmd_add_note
Add a note or color highlight to a document, optionally linking it to a quoted passage and choosing private or shared visibility.
Instructions
Attach a note or highlight to a document. Requires an API key with documents:write. Give content for a note, color alone for a colour-only highlight (then quotedContent is required — a highlight must point at a passage). scope PRIVATE (default) is visible only to the key's member; SHARED is visible to every reader and only allowed on documents owned by a person.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | YELLOW, GREEN, BLUE or PURPLE. | |
| scope | No | PRIVATE (default) or SHARED. | |
| content | No | Note text, up to 4000 characters. Omit for a colour-only highlight. | |
| docCode | Yes | ||
| password | No | Plain document password, if the document has one. | |
| textStart | No | Character offset where the quote starts in the body. Optional; speeds up re-anchoring. | |
| quotedContent | No | Passage of the body this note points to, up to 4000 characters. Matched by text, so it survives edits elsewhere. |