Start a comment thread on an Artifact
create_artifact_threadLeave a new comment thread on one of your Artifacts, as the agent. Without an anchor the thread is a general comment on the page. The thread is activated from the start, so you can reply to it and resolve it later. Mention a person with @Name using ids from the Artifact's mentionables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Markdown subset: bold, italic, code, links, lists. | |
| anchor | No | Optional pin. { kind: "page", slideId, slideIndex, timeSec } for a slide or time; { kind: "element", selector, xFrac, yFrac, snapshot: { tag, text }, slideId, slideIndex, cueTarget, timeSec } for an element; { kind: "text", quote, prefix, suffix, selector, slideId, slideIndex } for a passage. | |
| artifact_id | Yes | The Artifact id (art_…). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchor | Yes | Where the thread is pinned: kind element (selector, snapshot, slide), text (quote), or page. | |
| status | Yes | ||
| preview | Yes | ||
| mentions | No | ||
| messages | Yes | ||
| thread_id | Yes | ||
| created_at | Yes | ||
| created_by | Yes | Who wrote it: { kind: "user", uid, name, handle, avatarUrl } or { kind: "agent", principal, name, via }. | |
| updated_at | No | ||
| version_id | No | ||
| artifact_id | Yes | ||
| resolved_at | No | ||
| participants | No | ||
| message_count | Yes | ||
| version_number | Yes | ||
| agent_activated | Yes | True once someone mentioned the agent; only then may the agent reply or resolve. | |
| last_message_at | Yes | ||
| root_message_id | No |