Marigold

v0.9.1
io.github.immuneeb/marigold Checked 3 days ago Published 4 months ago

Comment on AI-generated webpages; feedback flows back to your coding agent.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

start_analysis Start a Marigold analysis

load the Marigold Way before authoring a draft — the first-principles method, doc structure guide, and a mode posture pack for what the session must produce. Call this first when asked to analyze, explain, teach, or build an interactive draft, then follow the returned method.

ParameterTypeDescription
modestringWhat the session must produce: analyze = first-principles breakdown (default); learn = a retained mental model; judge = verdicts on existing work; decide = a selection + rationale; organize = an arran…
topicstringThe topic, if known

create_draft Create draft

write a new HTML/SVG draft to disk and open it in the reviewer's browser. Returns the file path — pass it to every other tool. Use update_draft for revisions.

ParameterTypeDescription
html *stringFull HTML document, fragment, or SVG markup
namestringFile name without extension (defaults to the title)
titlestringDoc title (also names the file)

open_draft Open draft

open an existing .html/.htm/.svg draft in the review shell (starts the daemon if needed).

ParameterTypeDescription
path *stringPath to the file
titlestring

update_draft Update draft

replace the draft's content with revised HTML. The reviewer's open tab live-reloads and existing comments re-anchor (keep the DOM structure stable where you can).

ParameterTypeDescription
html *string
path *string

get_feedback Get feedback

read the draft's comments. With waitSeconds > 0, wait for the reviewer to send feedback (or time out) and return the review round — use this after creating or updating a draft to wait for the reviewer.

ParameterTypeDescription
path *string
waitSecondsnumberHow long to block for the next review round; 0/omitted = return current comments now

reply_to_comment Reply to comment

reply in a comment thread — shown with the AI badge. Say what you changed before resolving.

ParameterTypeDescription
body *string
commentId *string
path *string

resolve_comment Resolve comment

propose a comment thread resolved, or reopen it. Resolving is a PROPOSAL — the reviewer confirms it (or reopens it if the fix missed) in the shell; it is not final until they do. Reply first with what you changed.

ParameterTypeDescription
commentId *string
path *string
reopenboolean

read_draft Read draft

read the draft's current HTML source from disk (e.g. before an update_draft revision).

ParameterTypeDescription
path *string

note_intent Note intent

record the intent — the "why" — for the draft's next save. The next edit's change entry carries it, so the history reads as decisions, not just diffs.

ParameterTypeDescription
intent *stringOne line: why the next edit is being made
path *string

get_history Get history

list the draft's recent changes, most recent first — each with its version, actor, intent, diff stats, and a few changed/added/removed element summaries.

ParameterTypeDescription
path *string
limitnumberHow many recent changes to return (default 50, max 200)

get_context Get context

get the draft's catch-up digest: durable insights FIRST (owner-level learnings across all drafts, stale ones first — an insight goes stale when a cited thread gets fresh REVIEWER activity; reaffirm/refine before creating a near-duplicate), then the open comments, the recent changes, and this draft's unsynthesized episodes (each thread's full comment chain, every attempt, and where it landed — read the whole chain, a reopen may be a follow-up, not a rejection). An episode's terminalState is confirmed | proposed | open | "answered" (an open Q&A thread you replied to that was never resolved o…

ParameterTypeDescription
path *string

save_insight Save insight

record a durable, cross-draft learning distilled from review episodes — owner-level, not per-draft. Evidence is mandatory: cite the {docId, commentId} threads it came from. Statements are capped at 140 characters. relation: "new" creates; "reinforces"/"refines"/"contradicts" update the insight named by `updates`. Creating (or refining into a) statement close to an existing ACTIVE insight is refused with `{saved:false, needsDistinction:true, candidates:[{id,statement}], hint}` — reaffirm one (updates + relation:"reinforces"), refine it (relation:"refines" + a new statement, which supersedes…

ParameterTypeDescription
evidence *array≥1 {docId, commentId} pairs that name real comments in a draft
createdByLabelstring
distinctFromarrayids of similar active insights you've decided are genuinely distinct — clears the forced choice (new + refines)
relationstringnew = create; reinforces = add evidence to `updates`; refines = new insight supersedes `updates`; contradicts = flag `updates` false
statementstringThe learning, one sentence (≤140 chars). Required for new + refines.
updatesstringThe existing insight this reinforces/refines/contradicts

get_insight Get insight

expand one insight by id: its statement, status, evidence links, and the full review episode behind each cited comment (chain + attempts + outcome).

ParameterTypeDescription
id *string