How to Get an AI Agent to Read Review Comments and Update the Document

Display is our product. An artifact is one HTML or Markdown file that Display publishes at its own link. We checked the vendor facts on each vendor's own pages on 16 October 2026.

TL;DR
Keep the comments on the published page, attached to the words they refer to, and give the agent a tool that reads them. In Display, the AI docs workspace that's open to all agents and people, colleagues select text in the artifact and leave a comment. The agent reads the open discussions through MCP and edits the exact passage. It publishes the next version at the same link, replies with what changed and resolves the thread. Anything that needs a human decision stays open. Each discussion records the version where it started, so the context stays available. People you invite from outside your organization get a role, for example Commenter, and comment on the page too.

Display is our product. An artifact is one HTML or Markdown file that Display publishes at its own link. We checked the vendor facts on each vendor's own pages on 16 October 2026.


The loop in five steps

Your agent does these steps through the Display MCP server. The tool name is in each step. Details: Review comments and MCP tools.

1. List the open discussions. The agent calls list_comments with subject_type: "artifact" and short_id. The default status is open. The agent can also ask for resolved threads, or only for threads with new activity since a date.

2. Read the current version and find the passage. The agent calls get_metadata, search and read. get_metadata returns the current version number and the open threads. The agent needs the version number for step 3.

3. Change the exact passage. The agent calls edit with short_id, base_version, old_text and new_text. The old text must occur exactly once. The call publishes a new version at the same link. For a larger change, the agent calls the MCP publish tool with the same short_id and the base_version. You can tell it: "Update the page at the same link."

If someone else updated the artifact first, the call stops with a version conflict. The agent reads the newer version, applies the change to it and tries again.

4. Reply to the discussion. The agent calls add_comment with parent_id set to the root comment ID. A reply uses the anchor of the root comment, so the agent sends no anchor.

5. Resolve the thread. The agent calls resolve_thread with comment_id. It uses the root comment ID from step 1. Any signed-in person with view access can reopen a resolved thread. The agent uses reopen_thread for that.

The prompt

This prompt from Review comments does all five steps:

Find the Display artifact named Quarterly plan. Review its open discussions, make
the requested changes when they are clear, reply with what changed, and resolve only
the discussions you addressed. Return the updated link and list anything that still
needs my decision.

What the agent must leave open

Give the agent a rule for what it must not resolve. Add these lines to the prompt:

  • A comment that asks a question the agent cannot answer from the document.
  • Two comments that ask for opposite changes.
  • A change to a number, a price, a date, a name or a legal statement that the agent cannot check.
  • A comment about tone or design that has more than one valid answer.

For these, the agent replies with what it found and what it needs. It does not resolve the thread. The person who owns the decision resolves it.


Get notified about new comments

A signed-in person selects the eye icon (Watch this artifact) in the Discussions panel to get comment notifications. The MCP tool is watch. Watches are for each user. They work for people and for agents with a user credential. An organization-scoped service key reads comments with list_comments. Use a user credential for the full loop: watch, reply and resolve.


How other tools do the same loop

ToolWho can commentAgent can read commentsComments tied to a version
Vercel preview commentsTeam members. Pro and Enterprise can invite external users. All commenters need a Vercel accountVercel documents a CLI for commentsEach comment is on a preview deployment
Stacktree client feedbackClients, without an accountYes. Its agent can read the feedback and resolve itYes
DisplayOrganization members with access, and invited outside guests with the Commenter role or higherYes. MCP tools read, reply and resolveYes. Each discussion records its starting version

Google Docs and Notion also have comments that you can resolve.


Roles for outside guests

Outside guests work in the role you give them.

You can invite a client by email to an artifact or a folder, and give the client a role: Viewer, Commenter, Contributor or Editor. The client signs in with a one-time password, Google or Microsoft, and does not join your organization. A client with the Commenter role comments on the page, and the agent reads those comments in the same loop. On Business and Enterprise, an Owner can also restrict outside sharing for the whole organization.


When another tool is better

  • The reader edits the text in a word processor. Google Docs has co-editing and suggestions.
  • You review a design, not a document. Figma comments are on the design file. Anyone with view access to a Figma file can comment.
  • The prototype is a running app. Vercel preview comments are on the running preview.

FAQ

Which MCP tools does the agent need?

list_comments, add_comment, resolve_thread, get_metadata, read, search, and edit or publish. The authenticated server is at https://api.display.dev/v1/mcp. On Claude, add Display from Claude's connector directory. For other agents, read Publish with your agent.

Does an update erase the comments?

No. Each discussion records the passage and the version where it started. If the passage is not in the current version, the reader selects Open that version to see the original context.

Can the agent post a new comment on a passage?

Yes. A new root comment needs an anchor: the quoted text with the text around it, and a CSS path. Most agent loops need only replies. Read the add_comment input in MCP tools.

Can a person fix a small error without the agent?

Yes. Anyone who can edit the artifact can fix a line in the page in the browser. Read Edit an artifact in your browser.

Does the agent resolve a thread by itself?

Only if you tell it to. The prompt above tells it to resolve only the discussions that it addressed.

How long can a comment be?

Through MCP, a comment body can hold up to 10,000 characters. In the browser, a text selection for a new comment can hold up to 1,024 characters.

A full workspace behind every URL

Share with your team and clients

Invite people by email and give each one a role.

Go back to any version

Each publish and each edit saves a version. The link stays the same.

Search for people and agents

You and your agents search every doc you can open.

See who opened it

Each doc shows who opened it, and when.

Private betaInternal apps that get data from your sourcesConnectors for the tools your team uses

A URL for everything your agents make

Any agent, any model. Behind your company’s sign-in, at one flat price.

Free to start · Unlimited viewers