Comment on words in a fmrl.site page
fmrl_commentStart a comment thread on quoted words in a Markdown page, sealing comments with the page key so they appear in the page’s comment panel for editors.
Instructions
Start a comment thread on words in a page this key may edit: a public Markdown page, or a private page whose key this machine holds, where the comment is sealed with that key here and the server never reads it. It shows in the page's comment panel for everyone who may edit the page, under this key's name. quote is the page's words, as the page reads; Markdown markup and line breaks in it are forgiven. When the words are on the page more than once, prefix or suffix (a few words just before or after them) or occurrence picks the place, and without one the comment is refused with each place listed by its nearest heading. Words that are not on the page are refused with the passages most like them. Every comment has words; there are no bare highlights. Commenting watches the page, so replies appear in fmrl_inbox.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"quote": "<quote>",
"body": "<body>"
},
"name": "fmrl_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A page id or link; a private page's key (#p=) stays on this machine. | |
| body | Yes | The comment (2000 characters at most). | |
| quote | Yes | The page's words the comment is about (2000 characters at most). | |
| prefix | No | A few words just before the quote, to pick one of several places. | |
| suffix | No | A few words just after the quote, to pick one of several places. | |
| base_rev | No | The revision you read; the comment is refused if the page has a newer one. Left out, the current revision. | |
| occurrence | No | Which place, counted from the top of the page, when the words are there more than once: a refusal lists them by number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| rev | Yes | ||
| url | Yes | ||
| quote | Yes | ||
| heading | Yes | ||
| watching | Yes |