Skip to content

ReferenceAPI

Comments

Comment threads on slides and objects.

Comments.md

Comment threads on slides and objects. The same text agents read through help().

at: { x: number; y: number } | undefined

Marker position in px, for comments on the slide.

author: CommentAuthor

Who started the thread.

created: string

When the thread was started (ISO 8601).

id: string

Agent-facing anchor, e.g. th_7Q2M4K9A.

reopen(): this

Opens a resolved thread again.

reply(text: string, options: { author?: string } = {}): this

Adds a reply: comment.reply("Fixed in v2", { author: "Lin Wei" }).

comment.reply("Fixed in v2", { author: "Lin Wei" })
resolve(): this

Marks the thread resolved (PowerPoint hides it unless resolved threads are shown).

resolved: boolean

Whether the thread is resolved.

target: { id: string; creationId: string } | undefined

The object the thread is on ({ id, creationId }); undefined for the slide itself.

text: string

The comment text.

thread: ReadonlyArray<{ author: string; text: string; created: string }>

The replies, oldest first.

input: Readonly<CommentAuthorInput>

Name, initials and account, as given to deck.comments.setAuthor().

name: string

The author’s name, as shown in PowerPoint’s comments pane.