Marigold
v0.9.1Comment 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.
| Parameter | Type | Description |
|---|---|---|
mode | string | What 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… |
topic | string | The 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.
| Parameter | Type | Description |
|---|---|---|
html * | string | Full HTML document, fragment, or SVG markup |
name | string | File name without extension (defaults to the title) |
title | string | Doc 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).
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the file |
title | string |
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).
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
waitSeconds | number | How 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
commentId * | string | |
path * | string | |
reopen | boolean |
read_draft Read draft
read the draft's current HTML source from disk (e.g. before an update_draft revision).
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
intent * | string | One 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
limit | number | How 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…
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
evidence * | array | ≥1 {docId, commentId} pairs that name real comments in a draft |
createdByLabel | string | |
distinctFrom | array | ids of similar active insights you've decided are genuinely distinct — clears the forced choice (new + refines) |
relation | string | new = create; reinforces = add evidence to `updates`; refines = new insight supersedes `updates`; contradicts = flag `updates` false |
statement | string | The learning, one sentence (≤140 chars). Required for new + refines. |
updates | string | The 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).
| Parameter | Type | Description |
|---|---|---|
id * | string |