obelisk

v0.2.0
io.github.zachhannum/obelisk Checked 1 day ago Published 2 months ago

Comment 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.

ParameterTypeDescription
note *stringPath to the note, relative to the vault root or to the working directory. Absolute paths reach a note in another vault. `.md` optional.
includeBodybooleanInclude the line-numbered note body. Defaults to true; turn it off only if you already have the text.
openOnlybooleanOnly 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…

ParameterTypeDescription
body *stringThe comment, as markdown. A ```suggestion block inside it proposes a replacement for the quoted passage.
note *stringPath to the note, relative to the vault root or to the working directory. Absolute paths reach a note in another vault. `.md` optional.
quote *stringThe passage to anchor to, copied verbatim out of the note.
modelstringRecorded on the comment as the model that wrote it.
nearLineintegerOnly when the quote appears more than once: the body line number, as printed by obelisk_list, of the occurrence you mean.
runstringGroups 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.

ParameterTypeDescription
body *stringThe reply, as markdown.
id *stringThe comment's id, from obelisk_list.
note *stringPath to the note, relative to the vault root or to the working directory. Absolute paths reach a note in another vault. `.md` optional.
modelstringWritten 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.

ParameterTypeDescription
id *stringThe comment's id, from obelisk_list.
note *stringPath to the note, relative to the vault root or to the working directory. Absolute paths reach a note in another vault. `.md` optional.
reopenbooleanMark it open again instead. Defaults to false.