obelisk
v0.2.0Comment on a passage of an Obsidian note, and propose suggested edits.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
obelisk_list List a note's comments
Every Obelisk comment on a note, with the passage each one is anchored to, plus the note body with line numbers. Read this before commenting: the `quote` you pass to obelisk_comment has to be copied out of this body character for character, and the line numbers here are what `nearLine` refers to. It is also the first half of the other flow — a person leaves a comment asking for something, you read it here, make the edit yourself, and call obelisk_resolve.
| Parameter | Type | Description |
|---|---|---|
note * | string | Path to the note, relative to the vault root or to the working directory. Absolute paths reach a note in another vault. `.md` optional. |
includeBody | boolean | Include the line-numbered note body. Defaults to true; turn it off only if you already have the text. |
openOnly | boolean | Only unresolved comments. Defaults to false. |
obelisk_comment Comment on a passage
Leave a comment on one passage of a note. It appears in the reader's Obsidian sidebar, badged as coming from an agent. `quote` is the anchor and must appear in the note verbatim — the same characters, punctuation, capitalization and spacing. Copy it from obelisk_list; do not retype it or tidy it up. There is no way to pass a line or column, and you should not try to count them: the quote is the anchor and the tool does the arithmetic. If the quote is not found, or is found more than once, nothing is written and you are told which. `body` is markdown. To propose a specific rewrite, put it i…
| Parameter | Type | Description |
|---|---|---|
body * | string | The comment, as markdown. A ```suggestion block inside it proposes a replacement for the quoted passage. |
note * | string | Path to the note, relative to the vault root or to the working directory. Absolute paths reach a note in another vault. `.md` optional. |
quote * | string | The passage to anchor to, copied verbatim out of the note. |
model | string | Recorded on the comment as the model that wrote it. |
nearLine | integer | Only when the quote appears more than once: the body line number, as printed by obelisk_list, of the occurrence you mean. |
run | string | Groups the comments from one review pass so the reader can dismiss them together. Defaults to this session's id; pass the same value for every comment in a pass. |
obelisk_reply Reply to a comment
Add a reply to an existing comment thread. A reply is markdown too, so a counter-proposal is a ```suggestion block in one. Use this to answer a question a person asked in a comment. To say that you have done what a comment asked, edit the note and call obelisk_resolve instead — a reply saying "done" leaves the thread open.
| Parameter | Type | Description |
|---|---|---|
body * | string | The reply, as markdown. |
id * | string | The comment's id, from obelisk_list. |
note * | string | Path to the note, relative to the vault root or to the working directory. Absolute paths reach a note in another vault. `.md` optional. |
model | string | Written into the reply's author field. |
obelisk_resolve Resolve or reopen a comment
Mark a comment settled — the reader's sidebar grays it out and drops it from the open count. This is what closes the loop on a comment a person left for you: read it, make the edit in the note yourself, then resolve it. Resolving a comment you did not write is allowed, but it records that what the comment asked for has been done, so resolve only once it has.
| Parameter | Type | Description |
|---|---|---|
id * | string | The comment's id, from obelisk_list. |
note * | string | Path to the note, relative to the vault root or to the working directory. Absolute paths reach a note in another vault. `.md` optional. |
reopen | boolean | Mark it open again instead. Defaults to false. |